Commit 84891ed0 authored by sof's avatar sof
Browse files

[project @ 1997-03-24 06:52:26 by sof]

Prepend header to hscpp
parent ee7250f0
......@@ -101,6 +101,7 @@ VERSION_SYMLINKS_FOR=ghc
# local setup/install information prepended.
#
PACKAGE_SCRIPTS=ghc stat2resid hstags mkdependHS
PACKAGE_LIB_SCRIPTS=hscpp
# Binaries to install
PACKAGE_BINS=$(PACKAGE_SCRIPTS) hp2ps
......@@ -142,6 +143,19 @@ config-pkgs ::
$(CHMOD) $(BIN_PERMS) bin/$(platform)/$(package)-$(version)/$$i; \
echo "Done."; \
done
@for i in $(PACKAGE_LIB_SCRIPTS); do \
echo "Creating a configured version of $$i .."; \
$(RM) lib/$(platform)/$(package)-$(version)/$$i.bak; \
test -f lib/$(platform)/$(package)-$(version)/$$i && $(MV) lib/$(platform)/$(package)-$(version)/$$i lib/$(platform)/$(package)-$(version)/$$i.bak; \
echo "eval 'exec $(PERL) -S $$$""0 $$""{1+\"$$$""@\"}'" > lib/$(platform)/$(package)-$(version)/$$i; \
echo " if $$""running_under_some_shell;" >> lib/$(platform)/$(package)-$(version)/$$i; \
echo $$"bindir='$(bindir)';" >> lib/$(platform)/$(package)-$(version)/$$i; \
echo $$"libdir='$(real_libdir)';" >> lib/$(platform)/$(package)-$(version)/$$i; \
echo $$"datadir='$(real_datadir)';" >> lib/$(platform)/$(package)-$(version)/$$i; \
cat lib/$(platform)/$(package)-$(version)/$$i.prl >> lib/$(platform)/$(package)-$(version)/$$i; \
$(CHMOD) $(BIN_PERMS) lib/$(platform)/$(package)-$(version)/$$i; \
echo "Done."; \
done
#
# The vaguely funky eval 'exec ...' echo line above *might* be
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment