From: simonm Date: Fri, 3 Oct 1997 15:18:32 +0000 (+0000) Subject: [project @ 1997-10-03 15:18:32 by simonm] X-Git-Tag: Approx_2487_patches~1443 X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=commitdiff_plain;h=68e687315d09cae075dda735c608b1628d7384a2 [project @ 1997-10-03 15:18:32 by simonm] update version number, and add stuff to install happy. --- diff --git a/distrib/Makefile-bin.in b/distrib/Makefile-bin.in index 9552471..a5f8059 100644 --- a/distrib/Makefile-bin.in +++ b/distrib/Makefile-bin.in @@ -78,8 +78,9 @@ real_libdir = $(libdir)/$(package)-$(version) real_datadir = $(datadir)/$(package)-$(version) package = ghc -version = 2.07 +version = 2.08 PERL = @PerlCmd@ +SH = /bin/sh RM = rm -f MV = mv CP = cp @@ -101,10 +102,11 @@ VERSION_SYMLINKS_FOR=ghc # local setup/install information prepended. # PACKAGE_SCRIPTS=ghc stat2resid hstags mkdependHS +PACKAGE_SH_SCRIPTS=happy PACKAGE_LIB_SCRIPTS=hscpp # Binaries to install -PACKAGE_BINS=$(PACKAGE_SCRIPTS) hp2ps +PACKAGE_BINS=$(PACKAGE_SCRIPTS) $(PACKAGE_SH_SCRIPTS) hp2ps #----------end of user-serviceable parts------------ # @@ -156,6 +158,19 @@ config-pkgs :: $(CHMOD) $(BIN_PERMS) lib/$(platform)/$(package)-$(version)/$$i; \ echo "Done."; \ done + @for i in $(PACKAGE_SH_SCRIPTS); do \ + echo "Creating a configured version of $$i .."; \ + $(RM) bin/$(platform)/$(package)-$(version)/$$i.bak; \ + test -f bin/$(platform)/$(package)-$(version)/$$i && $(MV) bin/$(platform)/$(package)-$(version)/$$i bin/$(platform)/$(package)-$(version)/$$i.bak; \ + echo "#! $(SH)" > bin/$(platform)/$(package)-$(version)/$$i ; \ + echo "bindir='$(bindir)';" >> bin/$(platform)/$(package)-$(version)/$$i ; \ + echo "libdir='$(real_libdir)';" >> bin/$(platform)/$(package)-$(version)/$$i ; \ + echo "libexecdir='$(real_libdir)';" >> bin/$(platform)/$(package)-$(version)/$$i ; \ + echo "datadir='$(real_datadir)';" >> bin/$(platform)/$(package)-$(version)/$$i ; \ + cat bin/$(platform)/$(package)-$(version)/$$i.sh >> bin/$(platform)/$(package)-$(version)/$$i; \ + $(CHMOD) $(BIN_PERMS) bin/$(platform)/$(package)-$(version)/$$i; \ + echo "Done."; \ + done mk-version-symlinks ::