mirror of
https://github.com/Relintai/osxcross.git
synced 2025-02-12 07:00:07 +01:00
This commit is contained in:
parent
e5d9db7ed0
commit
e7407e84ab
@ -5,7 +5,7 @@ if [ $(uname -s) != "Linux" ]; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$EUID" -ne 0 ]; then
|
if [ $EUID -ne 0 ]; then
|
||||||
echo "This script must be run as root"
|
echo "This script must be run as root"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
@ -16,17 +16,19 @@ fi
|
|||||||
test -n "$OCDEBUG" && set -x
|
test -n "$OCDEBUG" && set -x
|
||||||
|
|
||||||
PLATFORM="`uname -s`"
|
PLATFORM="`uname -s`"
|
||||||
PSCRIPT="`basename $0`"
|
SCRIPT="`basename $0`"
|
||||||
|
|
||||||
if [[ $PSCRIPT != *wrapper/build.sh ]]; then
|
if [[ $SCRIPT != *wrapper/build.sh ]]; then
|
||||||
# how many concurrent jobs should be used for compiling?
|
# how many concurrent jobs should be used for compiling?
|
||||||
JOBS=${JOBS:=`tools/get_cpu_count.sh`}
|
JOBS=${JOBS:=`tools/get_cpu_count.sh`}
|
||||||
|
|
||||||
if [ $PSCRIPT != "build.sh" -a "$PSCRIPT" != "build_clang.sh" ]; then
|
if [ $SCRIPT != "build.sh" -a $SCRIPT != "build_clang.sh" -a \
|
||||||
|
$SCRIPT != "mount_xcode_image.sh" ]; then
|
||||||
`tools/osxcross_conf.sh`
|
`tools/osxcross_conf.sh`
|
||||||
|
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
echo "you need to complete ./build.sh first, before you can start building $DESC"
|
echo -n "you need to complete ./build.sh first, before you can start "
|
||||||
|
echo "building $DESC"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user