mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-01-01 05:16:05 +01:00
31246: make a separate patch level header for releases
This commit is contained in:
parent
18bba82101
commit
369dc3a107
3 changed files with 12 additions and 2 deletions
|
@ -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,
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue