about summary refs log tree commit diff
path: root/Src/zsh.mdd
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2009-01-13 10:13:02 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2009-01-13 10:13:02 +0000
commite763f79b3f85f34edabf1e05304c757c8ef6f092 (patch)
tree60b4e7b9f47ebd3cae0ad7705b753d98f58ca241 /Src/zsh.mdd
parent883bdb50184ec0e36c0c8cb9df10ab454077ae0d (diff)
downloadzsh-e763f79b3f85f34edabf1e05304c757c8ef6f092.tar.gz
zsh-e763f79b3f85f34edabf1e05304c757c8ef6f092.tar.xz
zsh-e763f79b3f85f34edabf1e05304c757c8ef6f092.zip
26300: dont use "echo -n" for $ZSH_PATCHLEVEL
Diffstat (limited to 'Src/zsh.mdd')
-rw-r--r--Src/zsh.mdd8
1 files changed, 3 insertions, 5 deletions
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 \