diff options
| author | Dmitry Smirnov <[email protected]> | 2013-11-21 11:43:00 +1100 |
|---|---|---|
| committer | Dmitry Smirnov <[email protected]> | 2013-11-21 11:43:00 +1100 |
| commit | ef1e984eade3166f807197eccba378fa937b6f88 (patch) | |
| tree | 1b663f9c853d535cb7f13bca052ef7f9f1a1ecd6 | |
| parent | Merge pull request #3257 (diff) | |
| download | discoin-ef1e984eade3166f807197eccba378fa937b6f88.tar.xz discoin-ef1e984eade3166f807197eccba378fa937b6f88.zip | |
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.
| -rwxr-xr-x | share/genbuild.sh | 2 |
1 files changed, 2 insertions, 0 deletions
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 |