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

Re: PATCH: Program transform name, again



Bart Schaefer wrote:
>4.  Name transform is applied to the @setfilename line in zsh.texi.in to
>    generate zsh.texi.  Note that if a --program-suffix is supplied, the
>    resulting file name does not end in .info, which is almost certainly
>    a bad thing and is the leading argument that --program-transform-name
>    is intended to apply only to the name of the binary.
>5.  Name transform is applied to manual page names as well.  Same caveat
>    about --program-suffix.

No, no, this is all wrong.  You should be doing

	tzsh=`echo zsh | sed '@program_transform_name@'`

and then in each installed filename replace the substring "zsh" with "$(tzsh)".  So you'd do

	$(INSTALL_DATA) zshzle.1 $(DESTDIR)$(mandir)/man1/$(tzsh)zle.1

and so on.  The transform applies to the *program* name -- `zsh' -- not to
the actual filenames.  Furthermore, no transformed-name files, except the
info files (but they're an exception), should appear in the build tree.

-zefram



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