Build identification strings
authorPieter Wuille <pieter.wuille@gmail.com>
Sat, 7 Apr 2012 00:06:53 +0000 (02:06 +0200)
committerPieter Wuille <pieter.wuille@gmail.com>
Tue, 10 Apr 2012 16:16:53 +0000 (18:16 +0200)
commita20c0d0f6792acf532309eee2e9f29120c801ee4
tree0065544e660157fa0701977583b2876c81e833dd
parent138d08c5315c45b3dd08184c4eeb77ee3e47ef0a
Build identification strings

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.
20 files changed:
.gitattributes [new file with mode: 0644]
.gitignore
bitcoin-qt.pro
contrib/gitian-descriptors/gitian-win32.yml
contrib/gitian-descriptors/gitian.yml
doc/release-process.txt
share/genbuild.sh [new file with mode: 0755]
src/init.cpp
src/main.cpp
src/main.h
src/makefile.linux-mingw
src/makefile.mingw
src/makefile.osx
src/makefile.unix
src/qt/aboutdialog.cpp
src/qt/clientmodel.cpp
src/qt/clientmodel.h
src/util.cpp
src/version.cpp [new file with mode: 0644]
src/version.h [new file with mode: 0644]