[project @ 2005-06-07 15:06:59 by simonmar]
authorsimonmar <unknown>
Tue, 7 Jun 2005 15:06:59 +0000 (15:06 +0000)
committersimonmar <unknown>
Tue, 7 Jun 2005 15:06:59 +0000 (15:06 +0000)
Remove some non-portable uses of /bin/test, from Christian Maeder.

distrib/Makefile-bin.in

index 197a2e1..60a6b94 100644 (file)
@@ -173,7 +173,7 @@ config-pkgs ::
           $(SED) -e "s|\$$libdir|$(libdir)|g;s|\$$datadir|$(datadir)|g" <lib/$(platform)/$$i.bak >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           \