Updated Branches: refs/heads/master 0c8eda9b0 -> a3eb27d06
Removed unused script. Project: http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/commit/a3eb27d0 Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/tree/a3eb27d0 Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/diff/a3eb27d0 Branch: refs/heads/master Commit: a3eb27d0655cc41e29e69e5931a0c0915c56b625 Parents: 964c5c0 Author: Shazron Abdullah <shaz...@apache.org> Authored: Fri Aug 24 17:59:35 2012 -0700 Committer: Shazron Abdullah <shaz...@apache.org> Committed: Fri Aug 24 17:59:35 2012 -0700 ---------------------------------------------------------------------- bin/_build.sh | 92 ---------------------------------------------------- 1 files changed, 0 insertions(+), 92 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/blob/a3eb27d0/bin/_build.sh ---------------------------------------------------------------------- diff --git a/bin/_build.sh b/bin/_build.sh deleted file mode 100755 index 92ddd35..0000000 --- a/bin/_build.sh +++ /dev/null @@ -1,92 +0,0 @@ -#!/bin/bash - -# -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. -# - - -# iPhone OS Device SDKs: -# Device - iPhone OS 2.2.1 -sdk iphoneos2.2.1 -# Device - iPhone OS 3.0 -sdk iphoneos3.0 -# Device - iPhone OS 3.1 -sdk iphoneos3.1 -# -# iPhone OS Simulator SDKs: -# Simulator - iPhone OS 2.2.1 -sdk iphonesimulator2.2.1 -# Simulator - iPhone OS 3.0 -sdk iphonesimulator3.0 -# Simulator - iPhone OS 3.1 -sdk iphonesimulator3.1 -# -# run 'xcodebuild -showsdks' to show the valid sdks on the system - -current_sdk_version=3.0 -xcodebuild="/usr/bin/xcodebuild" - -# check whether the xcodebuild command exists -if [ ! -f $xcodebuild ]; then - echo "$xcodebuild not found." - exit -fi - -# check whether it is a proper build command (at least two arguments, configuration and xcode_proj_folder) -if [ $# -lt 2 ]; then - echo "Usage: $0 <configuration> [target] <xcode_proj_folder>" - echo " <configuration>: typically 'debug' or 'release'" - echo " [target]: either 'device' or 'emulator' (optional)" - echo " <xcode_proj_folder>: the path to the folder containing your Xcode project file" - exit -fi - -# First argument is the build configuration -configuration="$1" - -# Second argument may be the emulator/device parameter if available (thus 3rd argument is the xcode project path). -# If not, it will be the path to folder containing the xcode project path -sdk="" -xcodeproj_folder="" -archs="armv6 armv7" - -if [ $2 == "emulator" ]; then - sdk="-sdk iphonesimulator$current_sdk_version" - xcodeproj_folder=$3 - archs="i386" -elif [ $2 == "device" ]; then - sdk="-sdk iphoneos$current_sdk_version" - xcodeproj_folder=$3 -else - xcodeproj_folder=$2 -fi - -# the next lines will title-case the configuration value -configuration_len=${#configuration} -non_first_letter_substring="`echo ${configuration:1:configuration_len-1}|tr '[A-Z]' '[a-z]'`" -first_letter="`echo ${configuration:0:1}|tr '[a-z]' '[A-Z]'`" -configuration=$first_letter$non_first_letter_substring - -# Check whether the xcode project path exists -if [ ! -d $xcodeproj_folder ]; then - echo "Path to Xcode folder '$xcodeproj_folder' not found." - exit -fi - -echo 'Cordova: building...' - -# change to the project directory, and run the build -cd $xcodeproj_folder -echo $xcodebuild -alltargets -configuration $configuration $sdk -$xcodebuild -alltargets -configuration $configuration $sdk VALID_ARCHS="$archs" - -echo 'Cordova: build done.' \ No newline at end of file