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 d26fdced3e07c262e0d49ebe7c6f5c2a39c0bf44..3f88a97fb5c52b3a75240413eeb9a39a6bc25342 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