cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tim...@apache.org
Subject [2/2] ios commit: [CB-4872] - added iOS sdk version scripts
Date Sat, 19 Oct 2013 00:35:08 GMT
[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/75d06ffa
Tree: http://git-wip-us.apache.org/repos/asf/cordova-ios/tree/75d06ffa
Diff: http://git-wip-us.apache.org/repos/asf/cordova-ios/diff/75d06ffa

Branch: refs/heads/master
Commit: 75d06ffa0c6b8c5b9db1e743b76239ecd59bdf32
Parents: 0c34e4d
Author: Tim Kim <timk@adobe.com>
Authored: Wed Sep 18 14:27:35 2013 -0700
Committer: Tim Kim <timk@adobe.com>
Committed: Fri Oct 18 17:25:21 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/75d06ffa/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/75d06ffa/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/75d06ffa/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


Mime
View raw message