zsh-workers
 help / color / mirror / code / Atom feed
* PATCH: partial program transform support (Texinfo)
@ 1999-11-30 21:00 Clint Adams
  1999-12-02 16:46 ` Bart Schaefer
  0 siblings, 1 reply; 4+ messages in thread
From: Clint Adams @ 1999-11-30 21:00 UTC (permalink / raw)
  To: zsh-workers

This can be used independently of 8824 if you take out
the hunk for Src/Makefile.in.  Otherwise it's meant to
follow it.

Index: Makefile.in
===================================================================
RCS file: /cvs/zsh/zsh/Makefile.in,v
retrieving revision 1.1.1.6
diff -u -r1.1.1.6 Makefile.in
--- Makefile.in	1999/09/07 22:33:05	1.1.1.6
+++ Makefile.in	1999/11/30 20:57:51
@@ -38,12 +38,15 @@
 
 @DEFS_MK@
 
+transform = @program_transform_name@
+tzsh = `echo zsh | sed "$(transform)"`
+
 # ========== DEPENDENCIES FOR BUILDING ==========
 
 # default target
 all: config.h
 	@for subdir in Src Doc; do \
-	  (cd $$subdir && $(MAKE) $(MAKEDEFS) $@) || exit 1; \
+	  (cd $$subdir && $(MAKE) $(MAKEDEFS) tzsh=$(tzsh) $@) || exit 1; \
 	done
 
 check test:
@@ -68,7 +71,7 @@
 
 # install/uninstall just the binary
 install.bin uninstall.bin:
-	@cd Src && $(MAKE) $(MAKEDEFS) $@
+	@cd Src && $(MAKE) $(MAKEDEFS) tzsh=$(tzsh) $@
 
 # install/uninstall just the modules
 install.modules uninstall.modules:
@@ -85,7 +88,7 @@
 
 # install/uninstall just the info pages
 install.info uninstall.info:
-	@cd Doc && $(MAKE) $(MAKEDEFS) $@
+	@cd Doc && $(MAKE) $(MAKEDEFS) tzsh=$(tzsh) $@
 
 # install/uninstall just the html pages
 install.html uninstall.html:
Index: Doc/.cvsignore
===================================================================
RCS file: /cvs/zsh/zsh/Doc/.cvsignore,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 .cvsignore
--- Doc/.cvsignore	1999/04/15 18:05:35	1.1.1.1
+++ Doc/.cvsignore	1999/11/30 20:57:51
@@ -1,5 +1,6 @@
 Makefile
 version.yo
+zsh.yo
 zsh*.1
 zsh.texi
 zsh.info*
Index: Doc/.distfiles
===================================================================
RCS file: /cvs/zsh/zsh/Doc/.distfiles,v
retrieving revision 1.1.1.7
diff -u -r1.1.1.7 .distfiles
--- Doc/.distfiles	1999/08/01 14:48:53	1.1.1.7
+++ Doc/.distfiles	1999/11/30 20:57:51
@@ -2,7 +2,7 @@
     .cvsignore .distfiles Makefile.in
     META-FAQ.yo intro.ms
     version.yo zmacros.yo zman.yo ztexi.yo
-    zsh.yo zshbuiltins.yo zshcompctl.yo zshcompsys.yo zshcompwid.yo
+    zsh.yo.in zshbuiltins.yo zshcompctl.yo zshcompsys.yo zshcompwid.yo
     zshexpn.yo zshmisc.yo zshmodules.yo zshoptions.yo zshparam.yo
     zshzftpsys.yo zshzle.yo
     zsh.texi
Index: Doc/Makefile.in
===================================================================
RCS file: /cvs/zsh/zsh/Doc/Makefile.in,v
retrieving revision 1.1.1.26
diff -u -r1.1.1.26 Makefile.in
--- Doc/Makefile.in	1999/11/03 09:06:24	1.1.1.26
+++ Doc/Makefile.in	1999/11/30 20:57:51
@@ -35,6 +35,8 @@
 sdir_top        = @top_srcdir@
 INSTALL         = @INSTALL@
 
+tzsh = zsh
+
 @DEFS_MK@
 
 MAKEINFO = makeinfo
@@ -66,20 +68,23 @@
 
 # ========== DEPENDENCIES FOR BUILDING ==========
 
-all: $(MAN) zsh.texi zsh.info ../META-FAQ
+all: $(MAN) zsh.texi $(tzsh).info ../META-FAQ
 
 everything: all zsh.dvi zsh_us.ps zsh_a4.ps zsh_toc.html
 
 zsh.dvi: zsh.texi
 	$(TEXI2DVI) $(sdir)/zsh.texi
 
-zsh.info: zsh.texi
+%.info: zsh.texi
 	$(MAKEINFO) $(sdir)/zsh.texi || exit 0
 
 zsh.texi: zsh.yo
 	$(YODL) -o $(sdir)/zsh.texi -I$(sdir) -w ztexi.yo version.yo zsh.yo
 	test -f $(sdir)/zsh.texi
 
+zsh.yo: zsh.yo.in
+	sed 's,@@TEXINFO@@,texinfo\($(tzsh).info\)\($(tzsh)\),' zsh.yo.in >zsh.yo
+
 .yo.1:
 	case $@ in \
 	  */*) target=$@ ;; \
@@ -175,9 +180,9 @@
 	done
 
 # install info pages, creating install directory if necessary
-install.info: zsh.info
+install.info: $(tzsh).info
 	$(sdir_top)/mkinstalldirs $(DESTDIR)$(infodir)
-	for file in zsh.info zsh.info-[1-9]*; do \
+	for file in $(tzsh).info $(tzsh).info-[1-9]*; do \
 	  if test -f $$file; then \
 	    $(INSTALL_DATA) $$file $(DESTDIR)$(infodir); \
 	  elif test -f $(sdir)/$$file; then \
@@ -186,7 +191,7 @@
 	   fi || exit 1; \
 	done
 	if $(SHELL) -c 'install-info --version' >/dev/null 2>&1; then \
-	  install-info --dir-file=$(DESTDIR)$(infodir)/dir $(DESTDIR)$(infodir)/zsh.info; \
+	  install-info --dir-file=$(DESTDIR)$(infodir)/dir $(DESTDIR)$(infodir)/$(tzsh).info; \
 	else true; fi
 
 install.html: zsh_toc.html
@@ -201,7 +206,7 @@
 
 # uninstall info pages
 uninstall.info:
-	rm -f $(DESTDIR)$(infodir)/zsh.info $(DESTDIR)$(infodir)/zsh.info-[1-9]*
+	rm -f $(DESTDIR)$(infodir)/$(tzsh).info $(DESTDIR)$(infodir)/$(tzsh).info-[1-9]*
 
 # ========== DEPENDENCIES FOR CLEANUP ==========
 
@@ -214,7 +219,7 @@
 	rm -f Makefile *.1 *.texi
 
 realclean-here: distclean-here
-	cd $(sdir) && rm -f version.yo ../META-FAQ
+	cd $(sdir) && rm -f version.yo ../META-FAQ zsh.yo
 
 @CLEAN_MK@
 
Index: Src/Makefile.in
===================================================================
RCS file: /cvs/zsh/zsh/Src/Makefile.in,v
retrieving revision 1.1.1.15
diff -u -r1.1.1.15 Makefile.in
--- Src/Makefile.in	1999/11/30 15:55:08	1.1.1.15
+++ Src/Makefile.in	1999/11/30 20:57:52
@@ -42,8 +42,7 @@
 sdir_src      = $(sdir)
 dir_src       = .
 
-transform=@program_transform_name@
-tzsh=`echo zsh | sed '$(transform)'`
+tzsh = zsh
 
 # ========= DEPENDENCIES FOR BUILDING ==========


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

* Re: PATCH: partial program transform support (Texinfo)
  1999-11-30 21:00 PATCH: partial program transform support (Texinfo) Clint Adams
@ 1999-12-02 16:46 ` Bart Schaefer
  1999-12-02 17:55   ` Clint Adams
  0 siblings, 1 reply; 4+ messages in thread
From: Bart Schaefer @ 1999-12-02 16:46 UTC (permalink / raw)
  To: zsh-workers

On Nov 30,  4:00pm, Clint Adams wrote:
} Subject: PATCH: partial program transform support (Texinfo)
}
} This can be used independently of 8824 if you take out
} the hunk for Src/Makefile.in.  Otherwise it's meant to
} follow it.

I'm not sure this is an improvement.  If you run "make install" from the
Src directory, you get different results than doing it from the top-level
directory.  (Of course, you always got different results WRT the Doc and
so forth, but you see what I mean.)

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


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

* Re: PATCH: partial program transform support (Texinfo)
  1999-12-02 16:46 ` Bart Schaefer
@ 1999-12-02 17:55   ` Clint Adams
  1999-12-02 18:31     ` Bart Schaefer
  0 siblings, 1 reply; 4+ messages in thread
From: Clint Adams @ 1999-12-02 17:55 UTC (permalink / raw)
  To: Bart Schaefer; +Cc: zsh-workers

> I'm not sure this is an improvement.  If you run "make install" from the
> Src directory, you get different results than doing it from the top-level
> directory.  (Of course, you always got different results WRT the Doc and
> so forth, but you see what I mean.)

Yes, you're right.  Unfortunately, it doesn't work to put the transformed
name into the Makefile in the current directory as I had originally
planned, because something odd seems to happen with the recursive
variable assignments.

I agree that the whole mess is ugly.


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

* Re: PATCH: partial program transform support (Texinfo)
  1999-12-02 17:55   ` Clint Adams
@ 1999-12-02 18:31     ` Bart Schaefer
  0 siblings, 0 replies; 4+ messages in thread
From: Bart Schaefer @ 1999-12-02 18:31 UTC (permalink / raw)
  To: zsh-workers

On Dec 2, 12:55pm, Clint Adams wrote:
} Subject: Re: PATCH: partial program transform support (Texinfo)
}
} Unfortunately, it doesn't work to put the transformed
} name into the Makefile in the current directory as I had originally
} planned, because something odd seems to happen with the recursive
} variable assignments.

That would be a reason to do it at configure time rather than make time.
I didn't have any good ones before.

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


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

end of thread, other threads:[~1999-12-02 19:03 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-11-30 21:00 PATCH: partial program transform support (Texinfo) Clint Adams
1999-12-02 16:46 ` Bart Schaefer
1999-12-02 17:55   ` Clint Adams
1999-12-02 18:31     ` Bart Schaefer

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