mirror of
https://git.code.sf.net/p/zsh/code
synced 2026-04-18 06:53:35 -04:00
31474: create patchlevel.h correctly when using a separate build tree
This commit is contained in:
@@ -160,7 +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
|
||||
echo '#define ZSH_PATCHLEVEL "'`cd $(sdir_top) && git describe --tags --long`'"' >$(DISTNAME)/Src/patchlevel.h.release
|
||||
tar cf - $(DISTNAME) | gzip -9 > $@
|
||||
rm -rf $(DISTNAME)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user