diff options
author | simonmar <unknown> | 2005-06-13 10:21:09 +0000 |
---|---|---|
committer | simonmar <unknown> | 2005-06-13 10:21:09 +0000 |
commit | 15e008483d1934c183f587aaa4fb42dc326095dc (patch) | |
tree | 4bd5d2112b5a3037355d1228fee9af49a4489e4c /distrib | |
parent | c26a153cb20aa69dce35cf0317205336f4e5f0bb (diff) | |
download | haskell-15e008483d1934c183f587aaa4fb42dc326095dc.tar.gz |
[project @ 2005-06-13 10:21:09 by simonmar]
Use perl rather than sed to munge the package.conf file; avoids
portability problems with sed (previous version didn't work on Solaris).
Diffstat (limited to 'distrib')
-rw-r--r-- | distrib/Makefile-bin.in | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/distrib/Makefile-bin.in b/distrib/Makefile-bin.in index ebd59e588c..2175b74903 100644 --- a/distrib/Makefile-bin.in +++ b/distrib/Makefile-bin.in @@ -169,8 +169,7 @@ config-pkgs :: @for i in $(PACKAGE_LIB_SPLICED_FILES) ""; do \ if test "$$i"; then \ echo "Creating a configured version of $$i .."; \ - if [ -f lib/$(platform)/$$i ]; then $(MV) lib/$(platform)/$$i lib/$(platform)/$$i.bak; fi; \ - $(SED) -e "s|\$$libdir|$(libdir)|g;s|\$$datadir|$(datadir)|g" <lib/$(platform)/$$i.bak >lib/$(platform)/$$i; \ + $(PERL) -i.bak -lpe 's|\$$libdir|$(libdir)|g;s|\$$datadir|$(datadir)|g' lib/$(platform)/$$i; \ fi; \ done @if test "$(platform)" = "powerpc-apple-darwin"; then \ |