From ef1e984eade3166f807197eccba378fa937b6f88 Mon Sep 17 00:00:00 2001 From: Dmitry Smirnov Date: Thu, 21 Nov 2013 11:43:00 +1100 Subject: [PATCH] Provide build time when building from tarball: When building from tarball (i.g. not from git source tree or when git is not available) `genbuild.sh` write undefined $TIME to "build/build.h". Even worse, when TIME is set in the environment then its value is written instead of a date. For me this change fixed FTBFS which I got because I had TIME enviroment variable set with format for time(1) utility. --- share/genbuild.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/share/genbuild.sh b/share/genbuild.sh index da50b0d10..edb847a24 100755 --- a/share/genbuild.sh +++ b/share/genbuild.sh @@ -13,6 +13,8 @@ else exit 1 fi +TIME=$(date '+%F %T %z') + if [ -e "$(which git)" -a -d ".git" ]; then # clean 'dirty' status of touched files that haven't been modified git diff >/dev/null 2>/dev/null