Commit 81d6a3c5 authored by Felix Paul Kühne's avatar Felix Paul Kühne

build script: add option -n to disable network interaction when running the script

Note that if you run the script while your ImportedSources folder is incomplete, compilation will inevitably fail.
parent 82061624
......@@ -9,6 +9,8 @@ SDK=7.0
SDK_MIN=6.1
VERBOSE=no
CONFIGURATION="Release"
NONETWORK=no
TESTEDHASH=2791a97f2
TESTEDVLCKITHASH=b343a201d
TESTEDMEDIALIBRARYKITHASH=973a5eb38
......@@ -23,6 +25,7 @@ OPTIONS
-v Be more verbose
-s Build for simulator
-d Enable Debug
-n Skip script steps requiring network interaction
EOF
}
......@@ -64,7 +67,7 @@ buildxcodeproj()
IPHONEOS_DEPLOYMENT_TARGET=${SDK_MIN} > ${out}
}
while getopts "hvsdk:" OPTION
while getopts "hvsdnk:" OPTION
do
case $OPTION in
h)
......@@ -79,6 +82,9 @@ do
;;
d) CONFIGURATION="Debug"
;;
n)
NONETWORK=yes
;;
k)
SDK=$OPTARG
;;
......@@ -114,6 +120,7 @@ mkdir -p External
spushd ImportedSources
if [ "$NONETWORK" != "yes" ]; then
if ! [ -e vlc ]; then
git clone git://git.videolan.org/vlc/vlc-2.1.git vlc
info "Applying patches to vlc.git"
......@@ -225,6 +232,7 @@ cd ..
else
cd InAppSettingsKit && git pull --rebase && cd ..
fi
fi
info "Setup 'External' folders"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment