Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: PATCH: Program transform name, again



On Dec 6,  2:39am, Bart Schaefer wrote:
} Subject: PATCH: Program transform name, again
}
} 4.  Name transform is applied to the @setfilename line in zsh.texi.in to
}     generate zsh.texi.

Oops; two silly typos fixed below, and avoid making one of those mistakes
again by using $<.

Index: Doc/Makefile.in
===================================================================
@@ -78,9 +78,9 @@
 zsh.texi.in: $(sdir)/zsh.yo
 	$(YODL) -o $(sdir)/zsh.texi.in -I$(sdir) -w ztexi.yo version.yo zsh.yo
 
-zsh.texi: zsh.texi.in
-	@test -f $(sdir)/zsh.texi.in -a -s $(sdir)/zsh.texi.in
-	sed '/@setfilename/{; s/@setfilename //; $(transform) ; s/^/@setfilename /;}' < $(sdir)/zsh.texi > zsh.texi
+zsh.texi: $(sdir)/zsh.texi.in
+	@test -f $< -a -s $<
+	sed '/@setfilename/{; s/@setfilename //; $(transform) ; s/^/@setfilename /;}' < $< > zsh.texi
 
 .yo.1:
 	@case $@ in \

-- 
Bart Schaefer                                 Brass Lantern Enterprises
http://www.well.com/user/barts              http://www.brasslantern.com



Messages sorted by: Reverse Date, Date, Thread, Author