diff options
-rw-r--r-- | Src/zsh.mdd | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Src/zsh.mdd b/Src/zsh.mdd index 6e9077676..420e8fc1d 100644 --- a/Src/zsh.mdd +++ b/Src/zsh.mdd @@ -39,10 +39,10 @@ params.o: patchlevel.h version.h: $(sdir_top)/Config/version.mk zshcurses.h zshterm.h echo '#define ZSH_VERSION "'$(VERSION)'"' > $@ -patchlevel.h: $(sdir_top)/ChangeLog - sed -ne \ - 's/^\* *\$$''Revision: \(.*\) ''\$$/#define ZSH_PATCHLEVEL "\1"/p' \ - $(sdir_top)/ChangeLog >patchlevel.h +patchlevel.h: FORCE + echo '#define ZSH_PATCHLEVEL "'`git describe --tags --long`'"' > $@.tmp + cmp $@ $@.tmp && rm -f $@.tmp || mv $@.tmp $@ +FORCE: zshcurses.h: ../config.h @if test x$(ZSH_CURSES_H) != x; then \ |