From: simonmar Date: Tue, 7 Jun 2005 15:06:59 +0000 (+0000) Subject: [project @ 2005-06-07 15:06:59 by simonmar] X-Git-Tag: Initial_conversion_from_CVS_complete~450 X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=commitdiff_plain;h=56f5960bd253034cb813ea18da041e61395266bb [project @ 2005-06-07 15:06:59 by simonmar] Remove some non-portable uses of /bin/test, from Christian Maeder. --- diff --git a/distrib/Makefile-bin.in b/distrib/Makefile-bin.in index 197a2e1..60a6b94 100644 --- a/distrib/Makefile-bin.in +++ b/distrib/Makefile-bin.in @@ -173,7 +173,7 @@ config-pkgs :: $(SED) -e "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 +231,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 ! -s "$(bindir)/$$i" ; then $(INSTALL_BIN) bin/$(platform)/$$i$(exeext) $(bindir); fi; \ done; @for i in $(VERSION_SYMLINKS_FOR) ""; do \ if [ "x$$i" != "x" ]; then \