Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
PATCH: manpage reference transforms
- X-seq: zsh-workers 8933
- From: Clint Adams <schizo@xxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxx
- Subject: PATCH: manpage reference transforms
- Date: Tue, 7 Dec 1999 11:14:13 -0500
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author