Permalink
Browse files

Pregenerate version.cpp in release tarballs

  • Loading branch information...
1 parent 6aaf077 commit cc279666deac5b4f35719d97656da56f03dd235d @DarthGandalf DarthGandalf committed Oct 20, 2013
Showing with 6 additions and 0 deletions.
  1. +2 −0 Makefile.in
  2. +4 −0 make-tarball.sh
View
@@ -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)
View
@@ -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

0 comments on commit cc27966

Please sign in to comment.