error "Your Developer Tools' SDKs were not found.\nYou need to add extra symbolic links to /Developer to achieve correctly\nbuilt contribs.\nHave a look at the OSX-Compile-HOWTO for details.">&2
else
echo"ERROR:\nYour Developer Tools' SDKs were not found.\nYou need to add extra symbolic links to /Developer to achieve correctly\nbuilt contribs.\nHave a look at the OSX-Compile-HOWTO for details.">&2
exit 1
exit 1
fi
fi
}
}
...
@@ -69,7 +69,7 @@ ensure_macosx_sdk_presence()
...
@@ -69,7 +69,7 @@ ensure_macosx_sdk_presence()
DISTRO=
DISTRO=
BUILDDIR=.
BUILDDIR=.
while getopts “ht:d:” OPTION
while getopts “ht:d:b:i:” OPTION
do
do
case$OPTIONin
case$OPTIONin
h)
h)
...
@@ -82,6 +82,12 @@ do
...
@@ -82,6 +82,12 @@ do
d)
d)
DISTRO=$OPTARG
DISTRO=$OPTARG
;;
;;
b)
BUILDDIR=$OPTARG
;;
i)
PREFIX=$OPTARG
;;
?)
?)
usage
usage
exit
exit
...
@@ -92,10 +98,35 @@ done
...
@@ -92,10 +98,35 @@ done
BUILD=`gcc -dumpmachine`
BUILD=`gcc -dumpmachine`
if test"x$TARGET"="x";then
if test"x$TARGET"="x";then
info "No target specified, using '$BUILD'"
TARGET="$BUILD"
TARGET="$BUILD"
info "No target specified, using '$TARGET'"
fi
fi
if test"x$PREFIX"="x";then
PREFIX="`pwd`/hosts/$TARGET"
info "No install dir specified, using '$PREFIX'"
fi
# Make sure prefix is absolute and existing
mkdir-p"${PREFIX}"
PREFIX=`cd"${PREFIX}"&&pwd`
#
# Set up build dir
#
mkdir-p"${BUILDDIR}"
# Install build dir makefile
ln-sf"`pwd`/contrib.mak""${BUILDDIR}/Makefile"
# Create the 'build-src' folder to build from source