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/roms') diff --git a/resources/scripts/helpers/build/release/roms b/resources/scripts/helpers/build/release/roms index e2ef74d..e39aca5 100755 --- a/resources/scripts/helpers/build/release/roms +++ b/resources/scripts/helpers/build/release/roms @@ -31,9 +31,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}" romdir="${versiondir}/rom" @@ -75,6 +77,8 @@ for payload in *; do # Put the version string in the archive. printf '%s\n' "${version}" >"${archivename}/version" + # Put the version date string in the archive + printf '%s\n' "${versiondate}" >"${archivename}/versiondate" # Create the compressed archive. tar -c "${archivename}/" | xz -9e >"../../${romdir}/${payload}/${archivename}.tar.xz" -- cgit v0.9.1