X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=binutils%2Fmpw-make.sed;h=03abffe18f8a23b8fc96db9b425bcb42813926b2;hb=f6af82bd4470673eef9562d4ed3a2717c1d749ab;hp=911d4e6b643437ff2db7279a2cd1d7324192328f;hpb=ad77e2b8ab6808a79db55ab07a48e2dfc6e63928;p=deliverable%2Fbinutils-gdb.git diff --git a/binutils/mpw-make.sed b/binutils/mpw-make.sed index 911d4e6b64..03abffe18f 100644 --- a/binutils/mpw-make.sed +++ b/binutils/mpw-make.sed @@ -12,6 +12,7 @@ # Whack out unused host define bits. /HDEFINES/s/@HDEFINES@// +# Don't build specialized tools. /BUILD_NLMCONV/s/@BUILD_NLMCONV@// /BUILD_SRCONV/s/@BUILD_SRCONV@// /BUILD_DLLTOOL/s/@BUILD_DLLTOOL@// @@ -37,9 +38,14 @@ /BISON/s/^BISON =.*$/BISON = byacc/ #/BISONFLAGS/s/^BISONFLAGS =.*$/BISONFLAGS = / +# Embed the version in symbolic doublequotes that will expand to +# the right thing for each compiler. +/VERSION/s/'"{VERSION}"'/{dq}{VERSION}{dq}/ + # '+' is a special char to MPW, don't use it ever. /c++filt/s/c++filt/cplusfilt/ +# All of the binutils use the same Rez file, change names to refer to it. /^{[A-Z]*_PROG}/s/$/ "{s}"mac-binutils.r/ /{[A-Z]*_PROG}\.r/s/{[A-Z]*_PROG}\.r/mac-binutils.r/ @@ -84,13 +90,7 @@ stamps \\Option-f stamp-under\ 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\ + NewFolderRecursive "{bindir}"\ # Need to copy all the tools\ For prog in {PROGS}\ Set progname `echo {prog} | sed -e 's/.new//'`\