cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From agri...@apache.org
Subject ios commit: Fix /bin/create script to work with GNU sed in path
Date Tue, 12 Feb 2013 14:58:21 GMT
Updated Branches:
  refs/heads/master 6e19115dd -> 7f29bed20


Fix /bin/create script to work with GNU sed in path


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

Branch: refs/heads/master
Commit: 7f29bed207bc5065b705d9dc8706d37eb377157c
Parents: 6e19115
Author: Olivier Louvignes <olivier@mg-crea.com>
Authored: Tue Feb 5 19:30:23 2013 +0100
Committer: Andrew Grieve <agrieve@chromium.org>
Committed: Tue Feb 12 09:57:12 2013 -0500

----------------------------------------------------------------------
 bin/create |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-ios/blob/7f29bed2/bin/create
----------------------------------------------------------------------
diff --git a/bin/create b/bin/create
index b53c8a2..bef0f57 100755
--- a/bin/create
+++ b/bin/create
@@ -8,9 +8,9 @@
 # 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
@@ -21,7 +21,7 @@
 
 #
 # create a Cordova/iOS project
-# 
+#
 # USAGE
 #   ./create <path_to_new_project> <package_name> <project_name>
 #
@@ -79,7 +79,7 @@ cp -r "$BINDIR/templates/project/" "$PROJECT_PATH"
 # Copy in the JS.
 cp "$CORDOVALIB_DIR/cordova.ios.js" "$PROJECT_PATH/www/cordova-$CDV_VER.js"
 # Change the filename reference in the html from cordova.ios.js -> cordova-VERSION.js.
-sed -i "" "s/src[ 	]*=[ 	]*[\\'\"]cordova.ios.js[\\'\"]/src=\"cordova-${CDV_VER}.js\"/g"
"$PROJECT_PATH/www/index.html"
+/usr/bin/sed -i "" "s/src[ 	]*=[ 	]*[\\'\"]cordova.ios.js[\\'\"]/src=\"cordova-${CDV_VER}.js\"/g"
"$PROJECT_PATH/www/index.html"
 
 # I've tried to be thorough in my documentation of the manual actions below...
 # on first brush it would seem that the right solution would be to brute force


Mime
View raw message