You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by ti...@apache.org on 2013/09/18 23:27:55 UTC

ios commit: [CB-4872] - added iOS sdk version scripts

Updated Branches:
  refs/heads/sdkCheck [created] 782b951df


[CB-4872] - added iOS sdk version scripts


Project: http://git-wip-us.apache.org/repos/asf/cordova-ios/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-ios/commit/782b951d
Tree: http://git-wip-us.apache.org/repos/asf/cordova-ios/tree/782b951d
Diff: http://git-wip-us.apache.org/repos/asf/cordova-ios/diff/782b951d

Branch: refs/heads/sdkCheck
Commit: 782b951dfb9d314fbb3f827fcd3b44a0c9696d67
Parents: cace580
Author: Tim Kim <ti...@adobe.com>
Authored: Wed Sep 18 14:27:35 2013 -0700
Committer: Tim Kim <ti...@adobe.com>
Committed: Wed Sep 18 14:27:35 2013 -0700

----------------------------------------------------------------------
 bin/apple_ios_version   | 24 ++++++++++++++++++++++++
 bin/apple_osx_version   | 24 ++++++++++++++++++++++++
 bin/apple_xcode_version | 24 ++++++++++++++++++++++++
 3 files changed, 72 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-ios/blob/782b951d/bin/apple_ios_version
----------------------------------------------------------------------
diff --git a/bin/apple_ios_version b/bin/apple_ios_version
new file mode 100755
index 0000000..8a5aa7d
--- /dev/null
+++ b/bin/apple_ios_version
@@ -0,0 +1,24 @@
+#! /bin/sh
+
+#
+# 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.
+#
+
+# outputs the highest level of iOS sdk installed
+iOS_X_VERSIONS=$(xcodebuild -showsdks | sed -e '/./{H;$!d;}' -e 'x;/iOS SDKs/!d;' | grep -o '[0-9]*\.[0-9]* ');
+echo $iOS_X_VERSIONS | tr " " "\n" | sort -g | tail -1;
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/cordova-ios/blob/782b951d/bin/apple_osx_version
----------------------------------------------------------------------
diff --git a/bin/apple_osx_version b/bin/apple_osx_version
new file mode 100755
index 0000000..401e9cb
--- /dev/null
+++ b/bin/apple_osx_version
@@ -0,0 +1,24 @@
+#! /bin/sh
+
+#
+# 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.
+#
+
+# outputs the highest level of OS X sdk installed
+OS_X_VERSIONS=$(xcodebuild -showsdks | sed -e '/./{H;$!d;}' -e 'x;/OS X SDKs/!d;' | grep -o '[0-9]*\.[0-9]* ');
+echo $OS_X_VERSIONS | tr " " "\n" | sort -g | tail -1;
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/cordova-ios/blob/782b951d/bin/apple_xcode_version
----------------------------------------------------------------------
diff --git a/bin/apple_xcode_version b/bin/apple_xcode_version
new file mode 100755
index 0000000..d459b30
--- /dev/null
+++ b/bin/apple_xcode_version
@@ -0,0 +1,24 @@
+#! /bin/sh
+
+#
+# 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.
+#
+
+# outputs which version of XCODE is installed
+XCODEBUILD_VERSION=$(xcodebuild -version | head -n 1 | sed -e 's/Xcode //')
+echo $XCODEBUILD_VERSION
\ No newline at end of file