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/10/19 02:35:07 UTC

[1/2] ios commit: CB-4872 - need to copy over scipts to project

Updated Branches:
  refs/heads/master 0c34e4dd1 -> dfc52c5d7


CB-4872 - need to copy over scipts to project


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

Branch: refs/heads/master
Commit: dfc52c5d77798766529035754cc9d9c825056c99
Parents: 75d06ff
Author: Tim Kim <ti...@adobe.com>
Authored: Thu Oct 17 13:32:07 2013 -0700
Committer: Tim Kim <ti...@adobe.com>
Committed: Fri Oct 18 17:25:21 2013 -0700

----------------------------------------------------------------------
 bin/create | 5 +++++
 1 file changed, 5 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-ios/blob/dfc52c5d/bin/create
----------------------------------------------------------------------
diff --git a/bin/create b/bin/create
index 27176ee..6b07480 100755
--- a/bin/create
+++ b/bin/create
@@ -160,3 +160,8 @@ cp -r "$SCRIPT_TEMPLATE_DIR"/* "$PROJECT_PATH/"
 
 # copy the check_reqs script
 cp "$BINDIR/check_reqs" "$PROJECT_PATH"/cordova
+
+# copy the version scripts script
+cp "$BINDIR/apple_ios_version" "$PROJECT_PATH"/cordova
+cp "$BINDIR/apple_osx_version" "$PROJECT_PATH"/cordova
+cp "$BINDIR/apple_xcode_version" "$PROJECT_PATH"/cordova
\ No newline at end of file


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

Posted by ti...@apache.org.
[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 <ti...@adobe.com>
Authored: Wed Sep 18 14:27:35 2013 -0700
Committer: Tim Kim <ti...@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