فهرست منبع

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.
Felix Paul Kühne 11 سال پیش
والد
کامیت
81d6a3c53f
1فایلهای تغییر یافته به همراه9 افزوده شده و 1 حذف شده
  1. 9 1
      buildAspenProject.sh

+ 9 - 1
buildAspenProject.sh

@@ -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"