cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From shaz...@apache.org
Subject [01/10] mac commit: CB-7143 OSX platform cannot be installed as described (closes #13, closes #12)
Date Thu, 20 Aug 2015 17:47:53 GMT
Repository: cordova-osx
Updated Branches:
  refs/heads/master 67e69f6c5 -> ea4de2ab6


http://git-wip-us.apache.org/repos/asf/cordova-osx/blob/ea4de2ab/templates/scripts/cordova/build
----------------------------------------------------------------------
diff --git a/templates/scripts/cordova/build b/templates/scripts/cordova/build
deleted file mode 100755
index a6dd96e..0000000
--- a/templates/scripts/cordova/build
+++ /dev/null
@@ -1,73 +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.
-#
-
-#
-# compile and launch a Cordova/iOS project to the simulator
-#
-function usage() {
-    echo "Usage: $0"
-    echo "      --clean    : clean before building"
-    echo "      --debug    : use debug configuration (default)."
-    echo "      --release  : use release configuration."
-    echo "      --run      : run application after building"
-    echo "      --fg       : run application in foreground after building"
-}
-
-CORDOVA_PATH=$( cd "$( dirname "$0" )" && pwd -P)
-PROJECT_PATH="$(dirname "$CORDOVA_PATH")"
-XCODEPROJ=$( ls "$PROJECT_PATH" | grep .xcodeproj  )
-PROJECT_NAME=$(basename "$XCODEPROJ" .xcodeproj)
-
-source "$CORDOVA_PATH/check_reqs"
-cd "$PROJECT_PATH"
-
-CONFIGURATION=Debug
-CLEAN=
-RUN=
-while [[ $# -gt 0 ]]; do
-    case "$1" in
-        --debug) ;;
-        --release) CONFIGURATION=Release;;
-        --device) RUN=run ;; # ignored for osx
-        --emulator) RUN=run ;; # ignored for osx
-        --run) RUN=run ;; # ignored for osx
-        --fg) RUN=fg;;
-        --clean) CLEAN=clean;;
-        *) echo "Unrecognized flag: $1"; usage; exit 2;;
-    esac
-    shift
-done
-
-xcodebuild \
-    -xcconfig "$CORDOVA_PATH/build.xcconfig" \
-    -project "$PROJECT_NAME.xcodeproj" \
-    -target "$PROJECT_NAME" \
-    -configuration "$CONFIGURATION" \
-    $CLEAN build
-
-if [ "$RUN" == "run" ]; then
-    echo "Starting $PROJECT_NAME.app ..."
-    exec "$PROJECT_PATH/build/$PROJECT_NAME.app/Contents/MacOS/$PROJECT_NAME" \
-          > "$CORDOVA_PATH/console.log" 2>&1 &
-elif [ "$RUN" == "fg" ]; then
-    echo "Starting $PROJECT_NAME.app ..."
-    exec "$PROJECT_PATH/build/$PROJECT_NAME.app/Contents/MacOS/$PROJECT_NAME"
-fi
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/cordova-osx/blob/ea4de2ab/templates/scripts/cordova/build.xcconfig
----------------------------------------------------------------------
diff --git a/templates/scripts/cordova/build.xcconfig b/templates/scripts/cordova/build.xcconfig
deleted file mode 100644
index c544a83..0000000
--- a/templates/scripts/cordova/build.xcconfig
+++ /dev/null
@@ -1,12 +0,0 @@
-// to list all installed iOS identities, run:
-// security find-identity |  sed -n 's/.*\("[^"]*"\).*/\1/p' | grep 'iPhone'
-
-// generic 'OSX Developer' (no quotes) will match the right Identity with the right Provisioning
Profile plus Certificate,
-// based on the app bundle id
-// CODE_SIGN_IDENTITY = OSX Developer
-
-// use local output
-CONFIGURATION_BUILD_DIR=build/
-
-// somehow xcodebuild does not find the cordova headers
-HEADER_SEARCH_PATHS = CordovaLib/build/include
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/cordova-osx/blob/ea4de2ab/templates/scripts/cordova/clean
----------------------------------------------------------------------
diff --git a/templates/scripts/cordova/clean b/templates/scripts/cordova/clean
deleted file mode 100755
index b7c2e27..0000000
--- a/templates/scripts/cordova/clean
+++ /dev/null
@@ -1,40 +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.
-#
-
-#
-# Clean a Cordova/iOS project
-#
-
-set -e
-
-CORDOVA_PATH=$( cd "$( dirname "$0" )" && pwd -P)
-PROJECT_PATH="$(dirname "$CORDOVA_PATH")"
-XCODEPROJ=$( ls "$PROJECT_PATH" | grep .xcodeproj  )
-PROJECT_NAME=$(basename "$XCODEPROJ" .xcodeproj)
-
-source "$CORDOVA_PATH/check_reqs"
-
-cd "$PROJECT_PATH"
-
-xcodebuild -project "$PROJECT_NAME.xcodeproj" -configuration Debug -alltargets clean
-xcodebuild -project "$PROJECT_NAME.xcodeproj" -configuration Release -alltargets clean
-
-rm -rf "build"
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/cordova-osx/blob/ea4de2ab/templates/scripts/cordova/defaults.xml
----------------------------------------------------------------------
diff --git a/templates/scripts/cordova/defaults.xml b/templates/scripts/cordova/defaults.xml
deleted file mode 100644
index 18cf8a8..0000000
--- a/templates/scripts/cordova/defaults.xml
+++ /dev/null
@@ -1,45 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- 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.
--->
-<widget xmlns     = "http://www.w3.org/ns/widgets"
-        id        = "io.cordova.helloCordova"
-        version   = "2.0.0">
-
-    <!-- Preferences for iOS -->
-    <preference name="AllowInlineMediaPlayback" value="false" />
-    <preference name="AutoHideSplashScreen" value="true" />
-    <preference name="BackupWebStorage" value="cloud" />
-    <preference name="DisallowOverscroll" value="false" />
-    <preference name="EnableViewportScale" value="false" />
-    <preference name="FadeSplashScreen" value="true" />
-    <preference name="FadeSplashScreenDuration" value=".25" />
-    <preference name="KeyboardDisplayRequiresUserAction" value="true" />
-    <preference name="MediaPlaybackRequiresUserAction" value="false" />
-    <preference name="ShowSplashScreenSpinner" value="true" />
-    <preference name="SuppressesIncrementalRendering" value="false" />
-    <preference name="TopActivityIndicator" value="gray" />
-    <preference name="GapBetweenPages" value="0" />
-    <preference name="PageLength" value="0" />
-    <preference name="PaginationBreakingMode" value="page" /> <!-- page, column
-->
-    <preference name="PaginationMode" value="unpaginated" /> <!-- unpaginated, leftToRight,
topToBottom, bottomToTop, rightToLeft -->
-
-    <feature name="LocalStorage">
-        <param name="ios-package" value="CDVLocalStorage"/>
-    </feature>
-</widget>

http://git-wip-us.apache.org/repos/asf/cordova-osx/blob/ea4de2ab/templates/scripts/cordova/lib/copy-www-build-step.sh
----------------------------------------------------------------------
diff --git a/templates/scripts/cordova/lib/copy-www-build-step.sh b/templates/scripts/cordova/lib/copy-www-build-step.sh
deleted file mode 100755
index 1223830..0000000
--- a/templates/scripts/cordova/lib/copy-www-build-step.sh
+++ /dev/null
@@ -1,94 +0,0 @@
-#!/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.
-#
-#
-#   This script copies the www directory into the Xcode project.
-#
-#   This script should not be called directly.
-#   It is called as a build step from Xcode.
-
-SRC_DIR="www/"
-DST_DIR="$BUILT_PRODUCTS_DIR/$FULL_PRODUCT_NAME/Contents/Resources/www"
-COPY_HIDDEN=
-ORIG_IFS=$IFS
-IFS=$(echo -en "\n\b")
-
-if [[ -z "$BUILT_PRODUCTS_DIR" ]]; then
-  echo "The script is meant to be run as an Xcode build step and relies on env variables
set by Xcode."
-  exit 1
-fi
-if [[ ! -e "$SRC_DIR" ]]; then
-  echo "Path does not exist: $SRC_DIR"
-  exit 1
-fi
-
-if [[ -n $COPY_HIDDEN ]]; then
-  alias do_find='find "$SRC_DIR"'
-else
-  alias do_find='find -L "$SRC_DIR" -name ".*" -prune -o'
-fi
-
-time (
-# Code signing files must be removed or else there are
-# resource signing errors.
-rm -rf "$DST_DIR" \
-       "$BUILT_PRODUCTS_DIR/$FULL_PRODUCT_NAME/_CodeSignature" \
-       "$BUILT_PRODUCTS_DIR/$FULL_PRODUCT_NAME/PkgInfo" \
-       "$BUILT_PRODUCTS_DIR/$FULL_PRODUCT_NAME/embedded.mobileprovision"
-
-# Directories
-for p in $(do_find -type d -print); do
-  subpath="${p#$SRC_DIR}"
-  mkdir "$DST_DIR$subpath" || exit 1
-done
-
-# Symlinks
-for p in $(do_find -type l -print); do
-  subpath="${p#$SRC_DIR}"
-  source=$(readlink $SRC_DIR$subpath)
-  sourcetype=$(stat -f "%HT%SY" $source)
-  if [ "$sourcetype" = "Directory" ]; then
-    mkdir "$DST_DIR$subpath" || exit 2
-  else
-    rsync -a "$source" "$DST_DIR$subpath" || exit 3
-  fi
-done
-
-# Files
-for p in $(do_find -type f -print); do
-  subpath="${p#$SRC_DIR}"
-  if ! ln "$SRC_DIR$subpath" "$DST_DIR$subpath" 2>/dev/null; then
-    rsync -a "$SRC_DIR$subpath" "$DST_DIR$subpath" || exit 4
-  fi
-done
-
-# Copy the config.xml file.
-cp -f "${PROJECT_FILE_PATH%.xcodeproj}/config.xml" "$BUILT_PRODUCTS_DIR/$FULL_PRODUCT_NAME/Contents/Resources"
-
-# Copy the icons (probably the wrong place)
-# process icons if present
-if [ -d "${SRC_DIR}/res/osx" ]; then
-    ICON_DIR=$(dirname "${PRODUCT_SETTINGS_PATH}")/Images.xcassets/AppIcon.appiconset
-    echo "Copying icons to $ICON_DIR"
-    cp "${SRC_DIR}/res/osx/"icon-*.png "${ICON_DIR}"
-fi
-
-)
-IFS=$ORIG_IFS
-

http://git-wip-us.apache.org/repos/asf/cordova-osx/blob/ea4de2ab/templates/scripts/cordova/lib/install-device
----------------------------------------------------------------------
diff --git a/templates/scripts/cordova/lib/install-device b/templates/scripts/cordova/lib/install-device
deleted file mode 100755
index 473060c..0000000
--- a/templates/scripts/cordova/lib/install-device
+++ /dev/null
@@ -1,21 +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.
-
-echo "OSX does not support additional devices."
-exit 1
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/cordova-osx/blob/ea4de2ab/templates/scripts/cordova/lib/install-emulator
----------------------------------------------------------------------
diff --git a/templates/scripts/cordova/lib/install-emulator b/templates/scripts/cordova/lib/install-emulator
deleted file mode 100755
index 4517cfe..0000000
--- a/templates/scripts/cordova/lib/install-emulator
+++ /dev/null
@@ -1,21 +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.
-
-echo "OSX does not need emulators."
-exit 1
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/cordova-osx/blob/ea4de2ab/templates/scripts/cordova/lib/list-devices
----------------------------------------------------------------------
diff --git a/templates/scripts/cordova/lib/list-devices b/templates/scripts/cordova/lib/list-devices
deleted file mode 100755
index 473060c..0000000
--- a/templates/scripts/cordova/lib/list-devices
+++ /dev/null
@@ -1,21 +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.
-
-echo "OSX does not support additional devices."
-exit 1
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/cordova-osx/blob/ea4de2ab/templates/scripts/cordova/lib/list-emulator-images
----------------------------------------------------------------------
diff --git a/templates/scripts/cordova/lib/list-emulator-images b/templates/scripts/cordova/lib/list-emulator-images
deleted file mode 100755
index 4517cfe..0000000
--- a/templates/scripts/cordova/lib/list-emulator-images
+++ /dev/null
@@ -1,21 +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.
-
-echo "OSX does not need emulators."
-exit 1
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/cordova-osx/blob/ea4de2ab/templates/scripts/cordova/lib/list-started-emulators
----------------------------------------------------------------------
diff --git a/templates/scripts/cordova/lib/list-started-emulators b/templates/scripts/cordova/lib/list-started-emulators
deleted file mode 100755
index f55f3b6..0000000
--- a/templates/scripts/cordova/lib/list-started-emulators
+++ /dev/null
@@ -1,21 +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.
-
-echo "OSX does not need emulators."
-exit 1

http://git-wip-us.apache.org/repos/asf/cordova-osx/blob/ea4de2ab/templates/scripts/cordova/lib/start-emulator
----------------------------------------------------------------------
diff --git a/templates/scripts/cordova/lib/start-emulator b/templates/scripts/cordova/lib/start-emulator
deleted file mode 100755
index 04cf7c8..0000000
--- a/templates/scripts/cordova/lib/start-emulator
+++ /dev/null
@@ -1,21 +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.
-
-echo "OSX does not have emulators."
-exit 1

http://git-wip-us.apache.org/repos/asf/cordova-osx/blob/ea4de2ab/templates/scripts/cordova/log
----------------------------------------------------------------------
diff --git a/templates/scripts/cordova/log b/templates/scripts/cordova/log
deleted file mode 100755
index 5ca02cc..0000000
--- a/templates/scripts/cordova/log
+++ /dev/null
@@ -1,24 +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.
-#
-
-CORDOVA_PATH=$( cd "$( dirname "$0" )" && pwd -P)
-
-tail -f "$CORDOVA_PATH/console.log"

http://git-wip-us.apache.org/repos/asf/cordova-osx/blob/ea4de2ab/templates/scripts/cordova/run
----------------------------------------------------------------------
diff --git a/templates/scripts/cordova/run b/templates/scripts/cordova/run
deleted file mode 100755
index 51a0395..0000000
--- a/templates/scripts/cordova/run
+++ /dev/null
@@ -1,22 +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.
-#
-CORDOVA_PATH=$( cd "$( dirname "$0" )" && pwd -P)
-"$CORDOVA_PATH/build" --run $* || exit $?
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/cordova-osx/blob/ea4de2ab/templates/scripts/cordova/version
----------------------------------------------------------------------
diff --git a/templates/scripts/cordova/version b/templates/scripts/cordova/version
deleted file mode 100755
index 6a9261c..0000000
--- a/templates/scripts/cordova/version
+++ /dev/null
@@ -1,40 +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.
-#
-
-#
-# Returns the VERSION of CordovaLib used. 
-# Note: it does not work if the --shared option was used to create the project.
-#
-
-set -e
-
-CORDOVA_PATH=$( cd "$( dirname "$0" )" && pwd -P)
-PROJECT_PATH="$(dirname "$CORDOVA_PATH")"
-
-VERSION_FILE_PATH="$PROJECT_PATH/CordovaLib/VERSION"
-VERSION=$(<"$VERSION_FILE_PATH")
-
-if [ -f "$VERSION_FILE_PATH" ]; then
-  echo $VERSION 
-else
-  echo "The file \"$VERSION_FILE_PATH\" does not exist."
-  exit 1
-fi
\ No newline at end of file


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


Mime
View raw message