summaryrefslogtreecommitdiffstats
path: root/resources/scripts/helpers/build/release/src
diff options
context:
space:
mode:
authorFrancis Rowe <info@gluglug.org.uk>2015-12-06 00:36:40 (EST)
committer Francis Rowe <info@gluglug.org.uk>2015-12-06 00:36:40 (EST)
commitfc4c24864a0672fce04f79abe76586ae487c104d (patch)
treecf54fa4ac965903dd98e360de96bd1640b5a32e6 /resources/scripts/helpers/build/release/src
parent4f4ec55f08d55acadd6723a54db638bd5ef04484 (diff)
downloadlibreboot-fc4c24864a0672fce04f79abe76586ae487c104d.zip
libreboot-fc4c24864a0672fce04f79abe76586ae487c104d.tar.gz
libreboot-fc4c24864a0672fce04f79abe76586ae487c104d.tar.bz2
Revert "Revert "grub: build reproducibly""
This reverts commit 6278d578f6f47ae2d2742b95c99df087a06d0e90.
Diffstat (limited to 'resources/scripts/helpers/build/release/src')
-rwxr-xr-xresources/scripts/helpers/build/release/src4
1 files changed, 4 insertions, 0 deletions
diff --git a/resources/scripts/helpers/build/release/src b/resources/scripts/helpers/build/release/src
index ed7ec68..294c3c2 100755
--- a/resources/scripts/helpers/build/release/src
+++ b/resources/scripts/helpers/build/release/src
@@ -28,9 +28,11 @@ printf 'Building the source release archive\n'
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}_src"
@@ -65,6 +67,8 @@ fi
# include version information
printf '%s\n' "${version}" >"${distdir}/version"
+# include version date information
+printf '%s\n' "${versiondate}" >"${distdir}/versiondate"
printf 'Cleaning files in %s/\n' "${distdir}"