* PATCH: manpage reference transforms
@ 1999-12-07 16:14 Clint Adams
1999-12-07 16:18 ` Zefram
0 siblings, 1 reply; 2+ messages in thread
From: Clint Adams @ 1999-12-07 16:14 UTC (permalink / raw)
To: zsh-workers
This monster makes the manpages refer to each other properly,
except for "zsh", which I didn't replace for obvious reasons.
The slashes should probably be changed to commas for
consistency's sake.
AFAICT the only two major things not yet being transformed
are the references to zsh.1 in the manpages, and the Texinfo
description.
--- Doc/Makefile.in.old
+++ Doc/Makefile.in
@@ -171,13 +171,8 @@
tzsh=`echo zsh | sed '$(transform); s/,/\\\\,/g'`; \
for file in $(MAN); do \
tfile=`echo $$file | sed "s,zsh,$$tzsh,"`; \
- if test -f $$file; then \
- cp -f $$file $$tfile; \
- elif test -f $(sdir)/$$file; then \
- cp -f $(sdir)/$$file $$tfile; \
- else :; \
- fi || exit 1; \
- $(INSTALL_DATA) $$tfile $(DESTDIR)$(mandir)/man1 || exit 1; \
+ sed "s/zshall/$${tzsh}all/; s/zshmisc/$${tzsh}misc/; s/zshexpn/$${tzsh}expn/; s/zshparam/$${tzsh}param/; s/zshoptions/$${tzsh}options/; s/zshbuiltins/$${tzsh}builtins/; s/zshzle/$${tzsh}zle/; s/zshcompwid/$${tzsh}compwid/; s/zshcompctl/$${tzsh}compctl/; s/zshmodules/$${tzsh}modules/; s/zshcompsys/$${tzsh}compsys/;" \
+ $(sdir)/$$file >$(DESTDIR)$(mandir)/man1/$$tfile || exit 1; \
done
# install info pages, creating install directory if necessary
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: PATCH: manpage reference transforms
1999-12-07 16:14 PATCH: manpage reference transforms Clint Adams
@ 1999-12-07 16:18 ` Zefram
0 siblings, 0 replies; 2+ messages in thread
From: Zefram @ 1999-12-07 16:18 UTC (permalink / raw)
To: Clint Adams; +Cc: zsh-workers
Clint Adams wrote:
>This monster makes the manpages refer to each other properly,
I wouldn't recommend this. So far the documentation is all the same
everywhere (except for the matter that info files need to contain their
own filename): we should keep it this way. Also, the way you do it is
asking for trouble: you may change things not intended to be changed.
-zefram
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1999-12-07 16:18 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-12-07 16:14 PATCH: manpage reference transforms Clint Adams
1999-12-07 16:18 ` Zefram
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).