Fix MPW tool installation
authorStan Shebs <shebs@codesourcery.com>
Thu, 30 Nov 1995 02:55:03 +0000 (02:55 +0000)
committerStan Shebs <shebs@codesourcery.com>
Thu, 30 Nov 1995 02:55:03 +0000 (02:55 +0000)
ld/mpw-make.sed

index d26fdce..3f88a97 100644 (file)
 # The resource file is called mac-ld.r.
 /{LD_PROG}.r/s/{LD_PROG}\.r/mac-ld.r/
 
+/^install \\Option-f /,/^$/c\
+install \\Option-f  all install-only\
+\
+install-only \\Option-f\
+       If "`Exists "{prefix}"`" == ""\
+               Echo "{prefix}" does not exist, cannot install anything\
+               Exit 1\
+       End If\
+       If "`Exists "{bindir}"`" == ""\
+               NewFolder "{bindir}"\
+       End If\
+       Duplicate -y :ld.new "{bindir}"ld\
+
+
 # Remove dependency rebuilding crud.
 /^.dep /,/# .PHONY /d