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

Well, I'm talking too much.  This puts some use to the AC_ARG_PROGRAM
already in configure.in.

I actually wanted to do this for the info files, but that would involve
making .yo.in files and replacing what now says "zsh.info" and so on,
so I thought I'd start with the simple stuff and give people a
chance to be horrified.

--- Src/Makefile.in     1999/11/19 09:26:30     1.1.1.14
+++ Src/Makefile.in     1999/11/30 15:35:20
@@ -42,6 +42,9 @@
 sdir_src      = $(sdir)
 dir_src       = .
 
+transform=@program_transform_name@
+tzsh=`echo zsh | sed '$(transform)'`
+
 # ========= DEPENDENCIES FOR BUILDING ==========
 
 LINK        = $(CC) $(LDFLAGS) $(EXELDFLAGS) $(EXTRA_LDFLAGS) -o $@
@@ -159,14 +162,14 @@
 # install binary, creating install directory if necessary
 install.bin-here: zsh install.bin-@L@
        $(sdir_top)/mkinstalldirs $(DESTDIR)$(bindir)
-       $(INSTALL_PROGRAM) $(STRIPFLAGS) zsh $(DESTDIR)$(bindir)/zsh-$(VERSION)
-       if test -f $(DESTDIR)$(bindir)/zsh; then \
-           rm -f $(DESTDIR)$(bindir)/zsh.old; \
-           $(LN) $(DESTDIR)$(bindir)/zsh $(DESTDIR)$(bindir)/zsh.old; \
+       $(INSTALL_PROGRAM) $(STRIPFLAGS) zsh $(DESTDIR)$(bindir)/$(tzsh)-$(VERSION)
+       if test -f $(DESTDIR)$(bindir)/$(tzsh); then \
+           rm -f $(DESTDIR)$(bindir)/$(tzsh).old; \
+           $(LN) $(DESTDIR)$(bindir)/$(tzsh) $(DESTDIR)$(bindir)/$(tzsh).old; \
        else :; fi
-       rm -f $(DESTDIR)$(bindir)/zsh.new
-       $(LN) $(DESTDIR)$(bindir)/zsh-$(VERSION) $(DESTDIR)$(bindir)/zsh.new
-       mv $(DESTDIR)$(bindir)/zsh.new $(DESTDIR)$(bindir)/zsh
+       rm -f $(DESTDIR)$(bindir)/$(tzsh).new
+       $(LN) $(DESTDIR)$(bindir)/$(tzsh)-$(VERSION) $(DESTDIR)$(bindir)/$(tzsh).new
+       mv $(DESTDIR)$(bindir)/$(tzsh).new $(DESTDIR)$(bindir)/$(tzsh)
 
 install.bin-N:
 install.bin-L: $(LIBZSH)
@@ -175,7 +178,7 @@
 
 # uninstall binary
 uninstall.bin-here: uninstall.bin-@L@
-       rm -f $(DESTDIR)$(bindir)/zsh-$(VERSION) $(DESTDIR)$(bindir)/zsh
+       rm -f $(DESTDIR)$(bindir)/$(tzsh)-$(VERSION) $(DESTDIR)$(bindir)/$(tzsh)
 
 uninstall.bin-N:
 uninstall.bin-L:


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

* Re: PATCH: partial program transform support
  1999-11-30 15:46 PATCH: partial program transform support Clint Adams
@ 1999-12-02 16:28 ` Bart Schaefer
  0 siblings, 0 replies; 2+ messages in thread
From: Bart Schaefer @ 1999-12-02 16:28 UTC (permalink / raw)
  To: zsh-workers

(Yes, I'm a bit behind.)

On Nov 30, 10:46am, Clint Adams wrote:
} Subject: PATCH: partial program transform support
}
} I thought I'd start with the simple stuff and give people a
} chance to be horrified.

Hrm.  I'm not horrified that you're adding it, but I keep thinking there
must be a cleaner way to do so ... maybe a configure-time replacement
rather than make-time?  I don't know.

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


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

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

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-11-30 15:46 PATCH: partial program transform support Clint Adams
1999-12-02 16:28 ` 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).