aboutsummaryrefslogtreecommitdiff
path: root/share/genbuild.sh
AgeCommit message (Collapse)Author
2014-01-30Fix build time when building from tarball (now really)Wladimir J. van der Laan
Don't define BUILD_DATE at all when no git version information is available. `version.cpp` will then define it for us correctly to the last commit date. This has been fixed and broken many times over 0.9 history (21cc8bd, ef1e984), please don't touch this code unless you plan on testing all possible scenarios including gitian builds. Fixes #3570.
2013-11-21Provide build time when building from tarball:Dmitry Smirnov
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.
2013-09-05autotools: switch to autotools buildsystemCory Fields
2012-04-10Build identification stringsPieter Wuille
All client version information is moved to version.cpp, which optionally (-DHAVE_BUILD_INFO) includes build.h. build.h is automatically generated on supporting platforms via contrib/genbuild.sh, using git describe. The git export-subst attribute is used to put the commit id statically in version.cpp inside generated archives, and this value is used if no build.h is present. The gitian descriptors are modified to use git archive instead of a copy, to create the src/ directory in the output. This way, src/src/version.cpp will contain the static commit id. To prevent gitian builds from getting the "-dirty" marker in their git-describe generated identifiers, no touching of files or running sed on the makefile is performed anymore. This does not seem to influence determinism.