Init, adding corrade,magnum,magnum-plugins,magnum-integration,magnum-extras, and magnum-examples 2025.47_1
This commit is contained in:
10
common/hooks/pre-pkg/90-set-timestamps.sh
Normal file
10
common/hooks/pre-pkg/90-set-timestamps.sh
Normal file
@@ -0,0 +1,10 @@
|
||||
# This hook executes the following tasks:
|
||||
# - sets the timestamps in a package to the commit date
|
||||
|
||||
hook() {
|
||||
# If SOURCE_DATE_EPOCH is set, set mtimes to that timestamp.
|
||||
if [ -n "$SOURCE_DATE_EPOCH" ]; then
|
||||
msg_normal "$pkgver: setting mtimes to %s\n" "$(date --date "@$SOURCE_DATE_EPOCH")"
|
||||
find $PKGDESTDIR -print0 | xargs -0 touch -h --date "@$SOURCE_DATE_EPOCH"
|
||||
fi
|
||||
}
|
||||
Reference in New Issue
Block a user