Skip to content

Commit

Permalink
Pregenerate version.cpp in release tarballs
Browse files Browse the repository at this point in the history
  • Loading branch information
DarthGandalf committed Oct 20, 2013
1 parent 6aaf077 commit cc27966
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Makefile.in
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -141,6 +141,8 @@ src/version.cpp: Makefile version.sh $(shell if [ x`cat .version_extra 2> /dev/n
@mkdir -p .depend src @mkdir -p .depend src
$(E) Building source file version.cpp... $(E) Building source file version.cpp...
$(Q)WRITE_OUTPUT=yes $(srcdir)/version.sh "$(GIT)" > .version_extra 2> /dev/null $(Q)WRITE_OUTPUT=yes $(srcdir)/version.sh "$(GIT)" > .version_extra 2> /dev/null

CLEAN += src/version.cpp
endif endif


install: znc $(LIBZNC) install: znc $(LIBZNC)
Expand Down
4 changes: 4 additions & 0 deletions make-tarball.sh
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ git checkout-index --all --prefix=$TMPDIR/$ZNC/
make -C modules -f modpython/Makefile.gen srcdir=. SWIG=/usr/bin/swig make -C modules -f modpython/Makefile.gen srcdir=. SWIG=/usr/bin/swig
rm -fr modules/.depend rm -fr modules/.depend
rm make-tarball.sh 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 cd $TMPDIR
Expand Down

0 comments on commit cc27966

Please sign in to comment.