Pregenerate version.cpp in release tarballs

This commit is contained in:
Alexey Sokolov
2013-10-20 19:36:16 +04:00
parent 6aaf0770f3
commit cc279666de
2 changed files with 6 additions and 0 deletions
+2
View File
@@ -141,6 +141,8 @@ src/version.cpp: Makefile version.sh $(shell if [ x`cat .version_extra 2> /dev/n
@mkdir -p .depend src
$(E) Building source file version.cpp...
$(Q)WRITE_OUTPUT=yes $(srcdir)/version.sh "$(GIT)" > .version_extra 2> /dev/null
CLEAN += src/version.cpp
endif
install: znc $(LIBZNC)
+4
View File
@@ -38,6 +38,10 @@ git checkout-index --all --prefix=$TMPDIR/$ZNC/
make -C modules -f modpython/Makefile.gen srcdir=. SWIG=/usr/bin/swig
rm -fr modules/.depend
rm make-tarball.sh
sed -e "s/THIS_IS_NOT_NIGHTLY//" -i Makefile.in
echo '#include <znc/version.h>' > src/version.cpp
echo "const char* ZNC_VERSION_EXTRA = \"-rc1\";" >> src/version.cpp
# "rc1" part is to be fixed later
)
(
cd $TMPDIR