mirror of
https://github.com/Relintai/osxcross.git
synced 2025-02-08 02:55:56 +01:00
This commit is contained in:
parent
e5d9db7ed0
commit
e7407e84ab
@ -5,7 +5,7 @@ if [ $(uname -s) != "Linux" ]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ "$EUID" -ne 0 ]; then
|
||||
if [ $EUID -ne 0 ]; then
|
||||
echo "This script must be run as root"
|
||||
exit 1
|
||||
fi
|
||||
|
@ -16,17 +16,19 @@ fi
|
||||
test -n "$OCDEBUG" && set -x
|
||||
|
||||
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?
|
||||
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`
|
||||
|
||||
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
|
||||
fi
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user