diff options
Diffstat (limited to 'util/genbuild_h/genbuild_h.sh')
-rwxr-xr-x | util/genbuild_h/genbuild_h.sh | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/util/genbuild_h/genbuild_h.sh b/util/genbuild_h/genbuild_h.sh index 7f0c76869e..d68b867a88 100755 --- a/util/genbuild_h/genbuild_h.sh +++ b/util/genbuild_h/genbuild_h.sh @@ -24,7 +24,11 @@ export TZ=UTC top=`dirname $0`/../.. -if [ -e "${top}/.git" -a -x "$(command -v git)" ]; then +if [ "${BUILD_TIMELESS}" -eq 1 ]; then + GITREV=Timeless + TIMESOURCE="fixed" + DATE=0 +elif [ -e "${top}/.git" -a -x "$(command -v git)" ]; then GITREV=$(LANG= git log -1 --format=format:%h) TIMESOURCE=git DATE=$(git log --pretty=format:%ct -1) |