Improve the way that VERSION_EXTRA is calculated

Instead of doing magic with the result from version.sh so that we can add a
preprocessor macro, the script now just writes src/version.cpp with the expected
content. This should fix all the various issues that we have with quoting the
arguments and things that go wrong when not building znc from a git clone.

Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
Uli Schlachter
2013-02-09 13:59:31 +01:00
parent 8fdb530ee3
commit 58a34fa5ad
3 changed files with 33 additions and 29 deletions
-7
View File
@@ -1,7 +0,0 @@
#ifdef VERSION_EXTRA
const char* ZNC_VERSION_EXTRA = VERSION_EXTRA;
#else
const char* ZNC_VERSION_EXTRA = "";
#endif