zsh-workers
 help / color / mirror / code / Atom feed
* PATCH: the transform saga, Doc
@ 1999-12-06 16:15 Clint Adams
  1999-12-06 17:03 ` Zefram
  0 siblings, 1 reply; 3+ messages in thread
From: Clint Adams @ 1999-12-06 16:15 UTC (permalink / raw)
  To: zsh-workers

Well, I've come to agree that everything should be transformed,
including the manpages.  My only problem with this is that the
manpages will still refer to one another by their "correct names".
For example, zsh-suffixcompsys.1 instructs the reader to see
zshcompwid rather than zsh-suffixcompwid.

Index: Doc/Makefile.in
===================================================================
RCS file: /cvs/zsh/zsh/Doc/Makefile.in,v
retrieving revision 1.1.1.33
diff -u -r1.1.1.33 Makefile.in
--- Doc/Makefile.in	1999/12/06 04:40:27	1.1.1.33
+++ Doc/Makefile.in	1999/12/06 16:10:17
@@ -168,14 +168,15 @@
 install.man: $(MAN)
 	$(sdir_top)/mkinstalldirs $(DESTDIR)$(mandir)/man1
 	for file in $(MAN); do \
-	  tzsh=`echo $$file | sed '$(transform)'`; \
+	  tzsh=`echo zsh | sed '$(transform)'`; \
+	  tfile=`echo $$file | sed "s/zsh/$$tzsh/"`; \
 	  if test -f $$file; then \
-	    cp -f $$file $$tzsh; \
+	    cp -f $$file $$tfile; \
 	  elif test -f $(sdir)/$$file; then \
-	    cp -f $(sdir)/$$file $$tzsh; \
+	    cp -f $(sdir)/$$file $$tfile; \
 	  else :; \
 	  fi || exit 1; \
-	  $(INSTALL_DATA) $$tzsh $(DESTDIR)$(mandir)/man1 || exit 1; \
+	  $(INSTALL_DATA) $$tfile $(DESTDIR)$(mandir)/man1 || exit 1; \
 	done
 
 # install info pages, creating install directory if necessary
@@ -203,7 +204,8 @@
 uninstall.man:
 	for file in $(MAN); do \
 	  tzsh=`echo zsh | sed '$(transform)'`; \
-	  rm -f $(DESTDIR)$(mandir)/man1/$$tzsh; \
+	  tfile=`echo $$file | sed "s/zsh/$$tzsh/"`; \
+	  rm -f $(DESTDIR)$(mandir)/man1/$$tfile; \
 	done
 
 # uninstall info pages


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: PATCH: the transform saga, Doc
  1999-12-06 16:15 PATCH: the transform saga, Doc Clint Adams
@ 1999-12-06 17:03 ` Zefram
  1999-12-06 17:55   ` Clint Adams
  0 siblings, 1 reply; 3+ messages in thread
From: Zefram @ 1999-12-06 17:03 UTC (permalink / raw)
  To: Clint Adams; +Cc: zsh-workers

Clint Adams wrote:
>+	    cp -f $$file $$tfile; \
>+	  $(INSTALL_DATA) $$tfile $(DESTDIR)$(mandir)/man1 || exit 1; \

The cp is a bad idea when the name is not being transformed.  Anyway,
you don't need to create files in the build directory with the target
name: install can do it.

	$(INSTALL_DATA) $(sdir)/$$file $(DESTDIR)$(mandir)/man1/$$tfile

-zefram


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: PATCH: the transform saga, Doc
  1999-12-06 17:03 ` Zefram
@ 1999-12-06 17:55   ` Clint Adams
  0 siblings, 0 replies; 3+ messages in thread
From: Clint Adams @ 1999-12-06 17:55 UTC (permalink / raw)
  To: Zefram; +Cc: Clint Adams, zsh-workers

> The cp is a bad idea when the name is not being transformed.  Anyway,
> you don't need to create files in the build directory with the target
> name: install can do it.
> 
> 	$(INSTALL_DATA) $(sdir)/$$file $(DESTDIR)$(mandir)/man1/$$tfile

True if we don't want to transform the zmanrefs and the list in intro.yo
(which seems more difficult to do in the .1's than the .yo's.).
I'd also like the Texinfo description to be transformed, either in
ztexi.yo, the .info, or the install-info call.


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~1999-12-06 18:42 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-12-06 16:15 PATCH: the transform saga, Doc Clint Adams
1999-12-06 17:03 ` Zefram
1999-12-06 17:55   ` Clint Adams

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).