--- src/launch/Makefile.orig 1995-02-22 10:33:26.000000000 +0100 +++ src/launch/Makefile 2011-11-12 10:26:48.000000000 +0100 @@ -11,22 +11,15 @@ # have write permission in the current directory if NFS-mounted... install: - (echo "#!$(BINDIR)/camlrun"; \ - echo "exit 2"; \ - cat testprog) > /tmp/testscr - chmod a+x /tmp/testscr - sh -c 'if sh -c /tmp/testscr 2>/dev/null; \ - then echo "#!$(BINDIR)/camlrun" > $(LIBDIR)/header; \ - else cp camlexec $(LIBDIR)/header; \ - fi' - rm -f /tmp/testscr + echo "#!$(BINDIR)/camlrun" > $(LIBDIR)/header for script in camlc camllight camlmktop; do \ - cp $$script $(BINDIR)/$$script; \ + ${BSD_INSTALL_SCRIPT} $$script $(BINDIR)/$$script; \ chmod a+x $(BINDIR)/$$script; \ done SEDCOMMANDS=\ - -e 's|LIBDIR|$(LIBDIR)|' -e 's|CC|$(CC) $(OPTS)|' -e 's|LIBS|$(LIBS)|' + -e 's|LIBDIR|$(LIBDIR)|' -e 's|CC|$(CC) $(OPTS)|' -e 's|LIBS|$(LIBS)|' \ + -e 's|BINDIR|$(BINDIR)|' camlc: camlc.tpl ../version.h sed $(SEDCOMMANDS) \