cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jeffheif...@apache.org
Subject webworks commit: Updating scripts to make init calls surrounded in quotes
Date Fri, 30 Aug 2013 15:48:18 GMT
Updated Branches:
  refs/heads/master 16ef0a057 -> 9464372d1


Updating scripts to make init calls surrounded in quotes

  Reviewed By: James Keshavarzi <jkeshavarzi@blackberry.com>
  Tested By: Daniel Audino <daudino@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/9464372d
Tree: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/tree/9464372d
Diff: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/diff/9464372d

Branch: refs/heads/master
Commit: 9464372d1cb169e856cd56a01574bfc4f9f904ff
Parents: 16ef0a0
Author: Jeffrey Heifetz <jheifetz@blackberry.com>
Authored: Wed Aug 28 22:30:55 2013 -0400
Committer: Jeffrey Heifetz <jheifetz@blackberry.com>
Committed: Fri Aug 30 11:46:27 2013 -0400

----------------------------------------------------------------------
 blackberry10/bin/check_reqs                        | 5 +++--
 blackberry10/bin/create                            | 5 +++--
 blackberry10/bin/target                            | 5 +++--
 blackberry10/bin/templates/project/cordova/build   | 5 +++--
 blackberry10/bin/templates/project/cordova/clean   | 5 +++--
 blackberry10/bin/templates/project/cordova/run     | 5 +++--
 blackberry10/bin/templates/project/cordova/version | 5 +++--
 7 files changed, 21 insertions(+), 14 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/9464372d/blackberry10/bin/check_reqs
----------------------------------------------------------------------
diff --git a/blackberry10/bin/check_reqs b/blackberry10/bin/check_reqs
index 149cd4f..f221d63 100755
--- a/blackberry10/bin/check_reqs
+++ b/blackberry10/bin/check_reqs
@@ -18,7 +18,8 @@
 #
 #!/bin/sh
 
-source "$(dirname "$0")/init"
+BIN_DIR=$(dirname "$0")
+source "$BIN_DIR/init"
 
 NODE="$CORDOVA_NODE/node"
 NPM="$CORDOVA_NODE/npm"
@@ -50,7 +51,7 @@ elif [ ! -x "$DEBUGTOKENREQUEST" ]; then
     echo blackberry-debugtokenrequest cannot be found on the path. Aborting.
     EXIT_CODE=1
 else
-    "$NODE" "$( dirname "$0" )/check_reqs.js" "$@"
+    "$NODE" "$BIN_DIR/check_reqs.js" "$@"
     EXIT_CODE=0
 fi
 

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/9464372d/blackberry10/bin/create
----------------------------------------------------------------------
diff --git a/blackberry10/bin/create b/blackberry10/bin/create
index 8a9cf5f..66be263 100755
--- a/blackberry10/bin/create
+++ b/blackberry10/bin/create
@@ -23,10 +23,11 @@
 #
 #!/bin/sh
 
-source $(dirname "$0")/init
+BIN_DIR=$(dirname "$0")
+
+source "$BIN_DIR/init"
 
 CURRENT_DIR=$(pwd)
-BIN_DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
 NPM_PACKAGE_JSON="$BIN_DIR"/../package.json
 
 #Run check_reqs before doing anything and exit if there's an error

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/9464372d/blackberry10/bin/target
----------------------------------------------------------------------
diff --git a/blackberry10/bin/target b/blackberry10/bin/target
index e323cfb..1779aa2 100755
--- a/blackberry10/bin/target
+++ b/blackberry10/bin/target
@@ -1,3 +1,4 @@
 #!/bin/sh
-source $(dirname "$0")/init
-"$CORDOVA_NODE/node" "$( dirname "$0")/lib/target" "$@"
+BIN_DIR=$(dirname "$0")
+source "$BIN_DIR/init"
+"$CORDOVA_NODE/node" "$BIN_DIR/lib/target" "$@"

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/9464372d/blackberry10/bin/templates/project/cordova/build
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/cordova/build b/blackberry10/bin/templates/project/cordova/build
index b082f38..80769f7 100755
--- a/blackberry10/bin/templates/project/cordova/build
+++ b/blackberry10/bin/templates/project/cordova/build
@@ -1,6 +1,7 @@
 #!/bin/sh
-source $(dirname "$0")/init
+CORDOVA_DIR=$(dirname "$0")
+source "$CORDOVA_DIR/init"
 
 #package app
-"$CORDOVA_NODE/node" "$(dirname "$0")/lib/build" "$@"
+"$CORDOVA_NODE/node" "$CORDOVA_DIR/lib/build" "$@"
 

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/9464372d/blackberry10/bin/templates/project/cordova/clean
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/cordova/clean b/blackberry10/bin/templates/project/cordova/clean
index 94d0aba..d1fa322 100755
--- a/blackberry10/bin/templates/project/cordova/clean
+++ b/blackberry10/bin/templates/project/cordova/clean
@@ -1,4 +1,5 @@
 #!/bin/sh
-source $(dirname "$0")/init
+CORDOVA_DIR=$(dirname "$0")
+source "$CORDOVA_DIR/init"
 
-"$CORDOVA_NODE/node" "$(dirname "$0")/lib/clean"
+"$CORDOVA_NODE/node" "$CORDOVA_DIR/lib/clean"

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/9464372d/blackberry10/bin/templates/project/cordova/run
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/cordova/run b/blackberry10/bin/templates/project/cordova/run
index 24e26e6..a95bdde 100755
--- a/blackberry10/bin/templates/project/cordova/run
+++ b/blackberry10/bin/templates/project/cordova/run
@@ -1,4 +1,5 @@
 #!/bin/sh
-source $(dirname "$0")/init
+CORDOVA_DIR=$(dirname "$0")
+source "$CORDOVA_DIR/init"
 
-"$CORDOVA_NODE/node" "$( dirname "$0")/lib/run" "$@"
+"$CORDOVA_NODE/node" "$CORDOVA_DIR/lib/run" "$@"

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/9464372d/blackberry10/bin/templates/project/cordova/version
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/cordova/version b/blackberry10/bin/templates/project/cordova/version
index 62ed952..b5deda2 100755
--- a/blackberry10/bin/templates/project/cordova/version
+++ b/blackberry10/bin/templates/project/cordova/version
@@ -1,6 +1,7 @@
 #!/bin/sh
-source $(dirname "$0")/init
+CORDOVA_DIR=$(dirname "$0")
+source "$CORDOVA_DIR/init"
 
 # Prints cordova version number
-"$CORDOVA_NODE/node" "$(dirname "$0")/lib/version" "$@"
+"$CORDOVA_NODE/node" "$CORDOVA_DIR/lib/version" "$@"
 


Mime
View raw message