1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-11 13:01:28 +02:00

26300: dont use "echo -n" for $ZSH_PATCHLEVEL

This commit is contained in:
Peter Stephenson 2009-01-13 10:13:02 +00:00
parent 883bdb5018
commit e763f79b3f
2 changed files with 8 additions and 6 deletions

View file

@ -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 $
*****************************************************

View file

@ -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 \