mirror of
https://github.com/znc/znc.git
synced 2026-06-27 05:21:38 +02:00
Pregenerate version.cpp in release tarballs
This commit is contained 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)
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user