1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-05-09 09:06:38 +02:00

31246: make a separate patch level header for releases

This commit is contained in:
Peter Stephenson 2013-04-09 20:21:57 +01:00
parent 18bba82101
commit 369dc3a107
3 changed files with 12 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2013-04-09 Peter Stephenson <p.w.stephenson@ntlworld.com>
* 31246: Makefile.in, Src/zsh.mdd: make a separate patch level
header for releases.
2013-04-08 Peter Stephenson <p.w.stephenson@ntlworld.com>
* unposted: Completion/Unix/Command/.distfiles,

View File

@ -160,6 +160,7 @@ targz-src: $(DISTNAME).tar.gz
$(DISTNAME).tar.gz: FORCE
@$(sdir_top)/Util/mkdisttree.sh $(DISTNAME) $(sdir_top) $(dir_top) SRC \
$(MAKE) $(MAKEDEFS)
echo '#define ZSH_PATCHLEVEL "'`git describe --tags --long`'"' >$(DISTNAME)/Src/patchlevel.h.release
tar cf - $(DISTNAME) | gzip -9 > $@
rm -rf $(DISTNAME)

View File

@ -40,8 +40,12 @@ version.h: $(sdir_top)/Config/version.mk zshcurses.h zshterm.h
echo '#define ZSH_VERSION "'$(VERSION)'"' > $@
patchlevel.h: FORCE
echo '#define ZSH_PATCHLEVEL "'`git describe --tags --long`'"' > $@.tmp
cmp $@ $@.tmp && rm -f $@.tmp || mv $@.tmp $@
@if [ -f $(sdir)/$@.release ]; then \
cp -f $(sdir)/$@.release $@; \
else \
echo '#define ZSH_PATCHLEVEL "'`git describe --tags --long`'"' > $@.tmp; \
cmp $@ $@.tmp && rm -f $@.tmp || mv $@.tmp $@; \
fi
FORCE:
zshcurses.h: ../config.h