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 /Src | |
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 'Src')
-rw-r--r-- | Src/zsh.mdd | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Src/zsh.mdd b/Src/zsh.mdd index 0fec5c363..4bc884b3d 100644 --- a/Src/zsh.mdd +++ b/Src/zsh.mdd @@ -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: |