From cc279666deac5b4f35719d97656da56f03dd235d Mon Sep 17 00:00:00 2001 From: Alexey Sokolov Date: Sun, 20 Oct 2013 19:36:16 +0400 Subject: [PATCH] Pregenerate version.cpp in release tarballs --- Makefile.in | 2 ++ make-tarball.sh | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/Makefile.in b/Makefile.in index 4c5e6c54..6d49f8d1 100644 --- a/Makefile.in +++ b/Makefile.in @@ -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) diff --git a/make-tarball.sh b/make-tarball.sh index 53c5ead0..d2d85549 100755 --- a/make-tarball.sh +++ b/make-tarball.sh @@ -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 ' > src/version.cpp + echo "const char* ZNC_VERSION_EXTRA = \"-rc1\";" >> src/version.cpp + # "rc1" part is to be fixed later ) ( cd $TMPDIR