From 26d16fa5cdc9e351fcb582104cf8c7b3bf9ddaf0 Mon Sep 17 00:00:00 2001 From: Francis Rowe Date: Fri, 04 Dec 2015 14:03:52 -0500 Subject: grub: build reproducibly --- (limited to 'resources/scripts/helpers/build/release/docs') diff --git a/resources/scripts/helpers/build/release/docs b/resources/scripts/helpers/build/release/docs index 966bccf..32203ac 100755 --- a/resources/scripts/helpers/build/release/docs +++ b/resources/scripts/helpers/build/release/docs @@ -28,9 +28,11 @@ printf 'Building the documentation 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}_docs" @@ -60,6 +62,8 @@ fi # include version information printf '%s\n' "${version}" >"${distdir}/version" +# include version date information +printf '%s\n' "${versiondate}" >"${distdir}/versiondate" printf 'Creating compressed documentation archive at %s\n' "${distdir}.tar.xz" (cd "${versiondir}/" && tar -c "${distname}/" | xz -9e >"${distname}.tar.xz") -- cgit v0.9.1