Skip to content

Commit ef1e984

Browse files
committed
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.
1 parent d980f9b commit ef1e984

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

share/genbuild.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ else
1313
exit 1
1414
fi
1515

16+
TIME=$(date '+%F %T %z')
17+
1618
if [ -e "$(which git)" -a -d ".git" ]; then
1719
# clean 'dirty' status of touched files that haven't been modified
1820
git diff >/dev/null 2>/dev/null

0 commit comments

Comments
 (0)