diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2009-01-13 10:13:02 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2009-01-13 10:13:02 +0000 |
commit | e763f79b3f85f34edabf1e05304c757c8ef6f092 (patch) | |
tree | 60b4e7b9f47ebd3cae0ad7705b753d98f58ca241 | |
parent | 883bdb50184ec0e36c0c8cb9df10ab454077ae0d (diff) | |
download | zsh-e763f79b3f85f34edabf1e05304c757c8ef6f092.tar.gz zsh-e763f79b3f85f34edabf1e05304c757c8ef6f092.tar.xz zsh-e763f79b3f85f34edabf1e05304c757c8ef6f092.zip |
26300: dont use "echo -n" for $ZSH_PATCHLEVEL
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | Src/zsh.mdd | 8 |
2 files changed, 8 insertions, 6 deletions
diff --git a/ChangeLog b/ChangeLog index 6ee6e4b79..50e9bdc09 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2009-01-13 Peter Stephenson <pws@csr.com> + + * 26300: Src/zsh.mdd: don't use "echo -n" for $ZSH_PATCHLEVEL. + 2009-01-09 Peter Stephenson <p.w.stephenson@ntlworld.com> * unposted: Doc/Zsh/compwid.yo: tweak doc for 26270. @@ -10889,5 +10893,5 @@ ***************************************************** * This is used by the shell to define $ZSH_PATCHLEVEL -* $Revision: 1.4503 $ +* $Revision: 1.4504 $ ***************************************************** diff --git a/Src/zsh.mdd b/Src/zsh.mdd index 7fb991007..51e68fc7c 100644 --- a/Src/zsh.mdd +++ b/Src/zsh.mdd @@ -42,11 +42,9 @@ version.h: $(sdir_top)/Config/version.mk zshcurses.h zshterm.h echo '#define ZSH_VERSION "'$(VERSION)'"' > $@ patchlevel.h: $(sdir_top)/ChangeLog - { \ - echo -n "#define ZSH_PATCHLEVEL "; \ - sed -ne 's/^\* *\$$''Revision: \(.*\) ''\$$/"\1"/p' \ - $(sdir_top)/ChangeLog; \ - } >patchlevel.h + sed -ne \ + 's/^\* *\$$''Revision: \(.*\) ''\$$/#define ZSH_PATCHLEVEL "\1"/p' \ + $(sdir_top)/ChangeLog >patchlevel.h zshcurses.h: ../config.h @if test x$(ZSH_CURSES_H) != x; then \ |