aboutsummaryrefslogtreecommitdiff
path: root/resources/scripts/helpers/build/release/util
diff options
context:
space:
mode:
authorFrancis Rowe <fchmmr@minifree.lan>2015-12-04 19:03:52 +0000
committerFrancis Rowe <fchmmr@minifree.lan>2015-12-04 19:08:06 +0000
commit26d16fa5cdc9e351fcb582104cf8c7b3bf9ddaf0 (patch)
tree06502e98de84f539fd001d6bd64cb71f8cb8e0a7 /resources/scripts/helpers/build/release/util
parent2e7fde09174aed5f3cc7d714dbe32e451873f3c9 (diff)
downloadlibrebootfr-26d16fa5cdc9e351fcb582104cf8c7b3bf9ddaf0.tar.gz
librebootfr-26d16fa5cdc9e351fcb582104cf8c7b3bf9ddaf0.zip
grub: build reproducibly
Diffstat (limited to 'resources/scripts/helpers/build/release/util')
-rwxr-xr-xresources/scripts/helpers/build/release/util4
1 files changed, 4 insertions, 0 deletions
diff --git a/resources/scripts/helpers/build/release/util b/resources/scripts/helpers/build/release/util
index 1a0d72f4..3e9910d9 100755
--- a/resources/scripts/helpers/build/release/util
+++ b/resources/scripts/helpers/build/release/util
@@ -44,9 +44,11 @@ fi
if [ -f "version" ]; then
# _src release archive is being used
version="$(cat version)"
+ versiondate="$(cat versiondate)"
else
# git repo is being used
version="$(git describe --tags HEAD)"
+ versiondate="$(git show -s --format=%ct)"
fi
versiondir="release/${version}"
distname="libreboot_${version}_util"
@@ -76,6 +78,8 @@ fi
# include version information
printf '%s\n' "${version}" >"${distdir}/version"
+# include version date information
+printf '%s\n' "${versiondate}" >"${distdir}/versiondate"
# --------------
# BUC.TS related