diff options
author | Barton E. Schaefer <schaefer@zsh.org> | 2013-06-13 09:46:43 -0700 |
---|---|---|
committer | Barton E. Schaefer <schaefer@zsh.org> | 2013-06-13 09:46:43 -0700 |
commit | e36e7d9adea7b8eab8f561e180f78b9f8e4eee5c (patch) | |
tree | 893f26aa779246d4d1bdb6c794cb51504eb2ea46 /Makefile.in | |
parent | 77feb2c1c4a852d4494af0783f0c33d6835fd4bb (diff) | |
download | zsh-e36e7d9adea7b8eab8f561e180f78b9f8e4eee5c.tar.gz zsh-e36e7d9adea7b8eab8f561e180f78b9f8e4eee5c.tar.xz zsh-e36e7d9adea7b8eab8f561e180f78b9f8e4eee5c.zip |
31474: create patchlevel.h correctly when using a separate build tree
Diffstat (limited to 'Makefile.in')
-rw-r--r-- | Makefile.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile.in b/Makefile.in index a29ab7885..197276c42 100644 --- a/Makefile.in +++ b/Makefile.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) |