aboutsummaryrefslogtreecommitdiff
path: root/share/genbuild.sh
diff options
context:
space:
mode:
authorDmitry Smirnov <onlyjob@member.fsf.org>2013-11-21 11:43:00 +1100
committerDmitry Smirnov <onlyjob@member.fsf.org>2013-11-21 11:43:00 +1100
commitef1e984eade3166f807197eccba378fa937b6f88 (patch)
tree1b663f9c853d535cb7f13bca052ef7f9f1a1ecd6 /share/genbuild.sh
parentd980f9b7d687a1e60eecf3691b592d9806a30f4a (diff)
downloadbitcoin-ef1e984eade3166f807197eccba378fa937b6f88.tar.xz
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.
Diffstat (limited to 'share/genbuild.sh')
-rwxr-xr-xshare/genbuild.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/share/genbuild.sh b/share/genbuild.sh
index da50b0d109..edb847a242 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