summaryrefslogtreecommitdiff
path: root/Src/zsh.mdd
diff options
context:
space:
mode:
authorPeter Stephenson <p.w.stephenson@ntlworld.com>2013-04-09 20:21:57 +0100
committerPeter Stephenson <p.w.stephenson@ntlworld.com>2013-04-09 20:21:57 +0100
commit369dc3a107f19b43a3a7dc9efbd7fb03ee574eeb (patch)
treea6dbfe0cc378ea0c321f010d3a8736d3af1aaaae /Src/zsh.mdd
parent18bba821018acc28ff62ae1944de03b3dd334997 (diff)
downloadzsh-369dc3a107f19b43a3a7dc9efbd7fb03ee574eeb.tar.gz
zsh-369dc3a107f19b43a3a7dc9efbd7fb03ee574eeb.zip
31246: make a separate patch level header for releases
Diffstat (limited to 'Src/zsh.mdd')
-rw-r--r--Src/zsh.mdd8
1 files changed, 6 insertions, 2 deletions
diff --git a/Src/zsh.mdd b/Src/zsh.mdd
index 420e8fc1d..0fec5c363 100644
--- a/Src/zsh.mdd
+++ b/Src/zsh.mdd
@@ -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