You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by bh...@apache.org on 2013/06/17 14:48:09 UTC
webworks commit: [CB-3796] Call check_reqs in create script before
creating project
Updated Branches:
refs/heads/master 7b65004ca -> 6fd732391
[CB-3796] Call check_reqs in create script before creating project
Reviewed by Jeffrey Heifetz <jh...@blackberry.com>
Tested by Tracy Li <tl...@blackberry.com>
Project: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/commit/6fd73239
Tree: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/tree/6fd73239
Diff: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/diff/6fd73239
Branch: refs/heads/master
Commit: 6fd732391b10ab9496d4925c03b8b1cf29bf1ed7
Parents: 7b65004
Author: jkeshavarzi <jk...@blackberry.com>
Authored: Thu Jun 13 18:38:33 2013 -0400
Committer: Bryan Higgins <bh...@blackberry.com>
Committed: Mon Jun 17 08:51:19 2013 -0400
----------------------------------------------------------------------
blackberry10/bin/create | 6 ++++++
blackberry10/bin/create.bat | 2 ++
2 files changed, 8 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/6fd73239/blackberry10/bin/create
----------------------------------------------------------------------
diff --git a/blackberry10/bin/create b/blackberry10/bin/create
index b8b2b89..4ba2665 100755
--- a/blackberry10/bin/create
+++ b/blackberry10/bin/create
@@ -26,6 +26,12 @@
CURRENT_DIR=$(pwd)
BIN_DIR=$(dirname "$0")
+#Run check_reqs before doing anything and exit if there's an error
+"$BIN_DIR"/check_reqs
+if [ ${?} -ne 0 ]; then
+ exit 1
+fi
+
#Run npm install every time (even if node_modules folder is present) to cover platform upgrade
cd "$BIN_DIR"/..
#Removed sudo usage so that node modules are not ownder by root
http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/6fd73239/blackberry10/bin/create.bat
----------------------------------------------------------------------
diff --git a/blackberry10/bin/create.bat b/blackberry10/bin/create.bat
index a8f7bab..2966f72 100644
--- a/blackberry10/bin/create.bat
+++ b/blackberry10/bin/create.bat
@@ -20,6 +20,8 @@ goto comment
set BIN_DIR=%~dp0
+"%BIN_DIR%check_reqs"
+
pushd %BIN_DIR%..
call npm install
popd