mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-23 16:40:24 +02:00
31474: create patchlevel.h correctly when using a separate build tree
This commit is contained in:
parent
77feb2c1c4
commit
e36e7d9ade
3 changed files with 7 additions and 2 deletions
|
@ -43,7 +43,7 @@ patchlevel.h: FORCE
|
|||
@if [ -f $(sdir)/$@.release ]; then \
|
||||
cp -f $(sdir)/$@.release $@; \
|
||||
else \
|
||||
echo '#define ZSH_PATCHLEVEL "'`git describe --tags --long`'"' > $@.tmp; \
|
||||
echo '#define ZSH_PATCHLEVEL "'`cd $(sdir) && git describe --tags --long`'"' > $@.tmp; \
|
||||
cmp $@ $@.tmp && rm -f $@.tmp || mv $@.tmp $@; \
|
||||
fi
|
||||
FORCE:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue