X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=distrib%2FMakefile-bin.in;h=2175b7490321d81e089dfdd7328972503f2c970c;hb=44deb23d9a1e9a28554f26eed85e76cb1c77220e;hp=197a2e1675dd281a848a21d045562a10c57d2f91;hpb=2b811329caa54eee7c1b159384e1e1aa3a5e9feb;p=ghc-hetmet.git diff --git a/distrib/Makefile-bin.in b/distrib/Makefile-bin.in index 197a2e1..2175b74 100644 --- a/distrib/Makefile-bin.in +++ b/distrib/Makefile-bin.in @@ -169,11 +169,10 @@ 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; \ + $(PERL) -i.bak -lpe 's|\$$libdir|$(libdir)|g;s|\$$datadir|$(datadir)|g' lib/$(platform)/$$i; \ fi; \ done - @if test "$(platform)" == "powerpc-apple-darwin"; then \ + @if test "$(platform)" = "powerpc-apple-darwin"; then \ echo "Configuring install names..."; \ for i in lib/$(platform)/*; do \ sh fix_install_names.sh "$(libdir)" "$$i"; \ @@ -231,7 +230,7 @@ install-bin: if test -n "$$i" ; then $(INSTALL_BIN) bin/$(platform)/$$i$(exeext) $(bindir); fi; \ done; for i in $(PACKAGE_OPT_BINS) ""; do \ - if test -n "$$i" -a ! -e "$(bindir)/$$i" ; then $(INSTALL_BIN) bin/$(platform)/$$i$(exeext) $(bindir); fi; \ + if test -n "$$i" -a ! -f "$(bindir)/$$i" ; then $(INSTALL_BIN) bin/$(platform)/$$i$(exeext) $(bindir); fi; \ done; @for i in $(VERSION_SYMLINKS_FOR) ""; do \ if [ "x$$i" != "x" ]; then \