summaryrefslogtreecommitdiff
path: root/script
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2023-10-14 02:19:36 +0100
committerLeah Rowe <leah@libreboot.org>2023-10-14 02:22:48 +0100
commit27aaae5992cfe2cca508f45863bd3186708e8b41 (patch)
tree271412e26570c6df9a88cc5d34a5f4cc9864d21c /script
parentca78fc6762913560d1cf8fb01e57dc72121870e5 (diff)
update/release: also set timestamp on srcdir
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'script')
-rwxr-xr-xscript/update/project/release3
1 files changed, 3 insertions, 0 deletions
diff --git a/script/update/project/release b/script/update/project/release
index b6c0acf5..d81343e0 100755
--- a/script/update/project/release
+++ b/script/update/project/release
@@ -279,6 +279,9 @@ mktarball()
-d "$(date -Rd @${versiondate})" {} + || \
err "mktarball ${1}: can't set universal timestamps"
)
+ [ -z "${touch_implementation}" ] || \
+ touch -h -a -m -d "$(date -Rd @${versiondate})" "${1}" || \
+ err "mktarball ${1}: can't set timestamp on ${1}"
[ "${2%/*}" = "${2}" ] || x_ mkdir -p "${2%/*}"
x_ tar -c "${1}" ${mtime} | xz -T0 -9e > "${2}"