You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by ag...@apache.org on 2014/01/07 18:10:26 UTC

spec commit: More tweaks to createmobilespec.sh.

Updated Branches:
  refs/heads/master bda329756 -> a8340a506


More tweaks to createmobilespec.sh.

Fail if grunt is not installed.
Fix comment location in config.xml
Don't pass in name and ID to create --link


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

Branch: refs/heads/master
Commit: a8340a5063dc2a51dbb3f7eb88fe25646fe7c20b
Parents: bda3297
Author: Andrew Grieve <ag...@chromium.org>
Authored: Tue Jan 7 11:57:30 2014 -0500
Committer: Andrew Grieve <ag...@chromium.org>
Committed: Tue Jan 7 12:10:16 2014 -0500

----------------------------------------------------------------------
 config.xml          | 2 +-
 createmobilespec.sh | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/blob/a8340a50/config.xml
----------------------------------------------------------------------
diff --git a/config.xml b/config.xml
index df4d9bc..e42a1c9 100644
--- a/config.xml
+++ b/config.xml
@@ -1,4 +1,5 @@
 <?xml version='1.0' encoding='utf-8'?>
+<widget id="org.apache.mobilespec" version="0.0.1" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
 <!--
   Licensed to the Apache Software Foundation (ASF) under one
   or more contributor license agreements.  See the NOTICE file
@@ -17,7 +18,6 @@
   specific language governing permissions and limitations
   under the License.
 -->
-<widget id="org.apache.mobilespec" version="0.0.1" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
     <name>mobilespec</name>
     <author>Apache Cordova</author>
     <description>

http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/blob/a8340a50/createmobilespec.sh
----------------------------------------------------------------------
diff --git a/createmobilespec.sh b/createmobilespec.sh
index 0e9104d..7bd7c14 100755
--- a/createmobilespec.sh
+++ b/createmobilespec.sh
@@ -43,8 +43,8 @@ echo "  ./cordova-coho/coho repo-update -r auto"
 REPO_PARENT="$PWD"
 set -e
 
-./cordova-cli/bin/cordova create mobilespec org.apache.mobilespec mobilespec --link cordova-mobile-spec
-( cd cordova-js; grunt )
+./cordova-cli/bin/cordova create mobilespec --link cordova-mobile-spec
+( cd cordova-js; grunt ) || exit $?
 cd mobilespec
 echo '{
   "id":"org.apache.mobilespec",