Skip to content

Commit

Permalink
Provide build time when building from tarball:
Browse files Browse the repository at this point in the history
 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.
  • Loading branch information
onlyjob committed Nov 21, 2013
1 parent d980f9b commit ef1e984
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions share/genbuild.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ef1e984

Please sign in to comment.