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 2014/08/27 21:41:05 UTC
[2/2] webworks commit: CB-7411 Make version in version script easier
to replace by coho
CB-7411 Make version in version script easier to replace by coho
Project: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/commit/8d9f2e40
Tree: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/tree/8d9f2e40
Diff: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/diff/8d9f2e40
Branch: refs/heads/master
Commit: 8d9f2e40dcfafd482368ccadd1c8fa0589edd8e9
Parents: 8f92486
Author: Josh Soref <js...@blackberry.com>
Authored: Tue Aug 26 17:40:50 2014 -0400
Committer: Josh Soref <js...@blackberry.com>
Committed: Tue Aug 26 17:57:15 2014 -0400
----------------------------------------------------------------------
bin/templates/project/cordova/lib/version.js | 61 +++++++----------------
bin/templates/project/cordova/version.bat | 33 ++++++------
2 files changed, 35 insertions(+), 59 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/8d9f2e40/bin/templates/project/cordova/lib/version.js
----------------------------------------------------------------------
diff --git a/bin/templates/project/cordova/lib/version.js b/bin/templates/project/cordova/lib/version.js
index 3068597..ac3bb54 100755
--- a/bin/templates/project/cordova/lib/version.js
+++ b/bin/templates/project/cordova/lib/version.js
@@ -1,48 +1,25 @@
#!/usr/bin/env node
/*
- * Copyright 2013 Research In Motion Limited.
- *
- * Licensed 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.
- */
+ 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
-var fs = require("fs"),
- readline = require("readline"),
- util = require("util"),
- path = require('path'),
- projectPath = path.resolve(__dirname, '../..'),
- filename = path.join(projectPath, 'www/cordova.js');
+ http://www.apache.org/licenses/LICENSE-2.0
-if (fs.existsSync(filename)) {
- var rl = readline.createInterface({
- input: fs.createReadStream(filename),
- terminal: false
- });
+ 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.
+*/
- rl.on("line", function (line) {
- var splitSpace,
- splitDash;
- if (/^\/\/\s\d/.test(line)) {
- rl.close();
- splitSpace = line.split(" ");
- if (splitSpace.length > 1) {
- splitDash = splitSpace[1].split("-");
- if (splitDash.length > 0) {
- console.log(splitDash[0]);
- }
- }
- }
- });
-} else {
- console.log(util.format("The file \"%s\" does not exist.", filename));
-}
+// Coho updates this line:
+var VERSION = "3.6.0-dev";
+
+console.log(VERSION);
http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/8d9f2e40/bin/templates/project/cordova/version.bat
----------------------------------------------------------------------
diff --git a/bin/templates/project/cordova/version.bat b/bin/templates/project/cordova/version.bat
index 22e3526..be89632 100644
--- a/bin/templates/project/cordova/version.bat
+++ b/bin/templates/project/cordova/version.bat
@@ -1,22 +1,21 @@
@ECHO OFF
-goto comment
- 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
+:: 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.
- 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.
-:comment
call "%~dp0init"
if ERRORLEVEL 1 exit /B 1