update/release: also set timestamp on srcdir

Signed-off-by: Leah Rowe <leah@libreboot.org>
btrfsvols
Leah Rowe 2023-10-14 02:19:36 +01:00
parent ca78fc6762
commit 27aaae5992
1 changed files with 3 additions and 0 deletions

View File

@ -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}"