Set SOURCE_DATE_EPOCH from last commit timestamp

Signed-off-by: David Oberhollenzer <goliath@infraroot.at>
This commit is contained in:
David Oberhollenzer 2019-08-02 11:57:32 +02:00
parent 055642ff26
commit d1c688328e
1 changed files with 1 additions and 0 deletions

1
mk.sh
View File

@ -40,6 +40,7 @@ mkdir -p "$REPODIR"
pushd "$SCRIPTDIR" > /dev/null
OS_NAME="Pygos"
OS_RELEASE=$(git describe --always --tags --dirty)
export SOURCE_DATE_EPOCH=$(git show -s --format=%ct)
popd > /dev/null
############################# include utilities ##############################