blob: 67d8bf4cbc34f3b037221ade1369c4e2591c1f77 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
|
# This hook executes the following tasks:
# - sets the timestamps in a package to the commit date
hook() {
# If XBPS_COMMIT_TIMESTAMP is set, set mtimes to that timestamp.
if [ -n "$XBPS_COMMIT_TIMESTAMP" ]; then
msg_normal "$pkgver: setting mtimes to %s\n" "$(date --date "$XBPS_COMMIT_TIMESTAMP")"
find $PKGDESTDIR -print0 | xargs -0 touch -h --date "$XBPS_COMMIT_TIMESTAMP"
fi
}
|