cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From purplecabb...@apache.org
Subject [4/9] git commit: Removing outdated/unused tooling scripts
Date Thu, 14 Aug 2014 01:48:17 GMT
Removing outdated/unused tooling scripts


Project: http://git-wip-us.apache.org/repos/asf/cordova-wp8/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-wp8/commit/88ebdd61
Tree: http://git-wip-us.apache.org/repos/asf/cordova-wp8/tree/88ebdd61
Diff: http://git-wip-us.apache.org/repos/asf/cordova-wp8/diff/88ebdd61

Branch: refs/heads/master
Commit: 88ebdd61929631ae5b72ef6c0a069993e85b7ebe
Parents: 7053bff
Author: Jesse MacFadyen <purplecabbage@gmail.com>
Authored: Wed Aug 13 17:09:13 2014 -0700
Committer: Jesse MacFadyen <purplecabbage@gmail.com>
Committed: Wed Aug 13 17:09:13 2014 -0700

----------------------------------------------------------------------
 wp8/tooling/scripts/buildjs.bat         |  24 --
 wp8/tooling/scripts/buildjs.js          | 216 ----------------
 wp8/tooling/scripts/createTemplates.bat |  24 --
 wp8/tooling/scripts/createTemplates.js  | 369 ---------------------------
 wp8/tooling/scripts/dist.bat            |  24 --
 wp8/tooling/scripts/dist.js             | 224 ----------------
 wp8/tooling/scripts/new.bat             |  24 --
 wp8/tooling/scripts/new.js              | 151 -----------
 wp8/tooling/scripts/package.bat         |  24 --
 wp8/tooling/scripts/package.js          | 257 -------------------
 wp8/tooling/scripts/reversion.bat       |  24 --
 wp8/tooling/scripts/reversion.js        | 248 ------------------
 12 files changed, 1609 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-wp8/blob/88ebdd61/wp8/tooling/scripts/buildjs.bat
----------------------------------------------------------------------
diff --git a/wp8/tooling/scripts/buildjs.bat b/wp8/tooling/scripts/buildjs.bat
deleted file mode 100644
index 6f9c2b0..0000000
--- a/wp8/tooling/scripts/buildjs.bat
+++ /dev/null
@@ -1,24 +0,0 @@
-@ECHO OFF
-goto endheader
-#
-# 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.
-#
-:endheader
-
-@echo off
-cscript "%~dp0\buildjs.js" %* //nologo
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/cordova-wp8/blob/88ebdd61/wp8/tooling/scripts/buildjs.js
----------------------------------------------------------------------
diff --git a/wp8/tooling/scripts/buildjs.js b/wp8/tooling/scripts/buildjs.js
deleted file mode 100644
index 9cd74fc..0000000
--- a/wp8/tooling/scripts/buildjs.js
+++ /dev/null
@@ -1,216 +0,0 @@
-/*
-       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.
-*/
-
-var fso = WScript.CreateObject('Scripting.FileSystemObject'),
-    shell = WScript.CreateObject("shell.application"),
-    wscript_shell = WScript.CreateObject("WScript.Shell");
-
-var args = WScript.Arguments,
-    //Root folder of cordova-wp8 (i.e C:\Cordova\cordova-wp8)
-    ROOT = WScript.ScriptFullName.split('\\tooling\\', 1),
-    //Sub folder containing templates
-    TEMPLATES_PATH = '\\templates',
-    //Sub folder for standalone project
-    STANDALONE_PATH = TEMPLATES_PATH + '\\standalone',
-    //Sub folder containing framework
-    FRAMEWORK_PATH = '\\framework',
-    //Subfolder containing example project
-    EXAMPLE_PATH = '\\example',
-    //Git Repositories
-    CORDOVA_JS = "https://git-wip-us.apache.org/repos/asf/cordova-js.git",
-    // get version
-    VERSION = read(ROOT+'\\VERSION').replace(/\r\n/,'').replace(/\n/,''),
-    BUILD_DESTINATION;
-
-
-// help function
-function Usage()
-{
-    Log("");
-    Log("This Script builds the given virsion of cordova.js and injects it into this or the given cordova-wp8 ");
-    Log("");
-    Log("Usage: buildjs [ Version PathTOCordovaWP8 ]");
-    Log("    Version : The version of cordova.js to build (must already be tagged)");
-    Log("    PathTOCordovaWP8 : The path to the cordova directory where the new cordova.js will go.");
-    Log("examples:");
-    Log("    buildjs 2.5.0rc1  //Puts cordova-2.5.0rc1 as the cordova.js in the current working directory");
-    Log("    buildjs 2.4.0 C:\\Users\\anonymous\\Desktop\\cordova-wp8  //Puts cordova-2.4.0.js in the given directory");
-    Log("    buildjs //Builds the version of cordova.js from the root folder and adds it to the working directory repo");
-    Log("");
-}
-
-// logs messaged to stdout and stderr
-function Log(msg, error) {
-    if (error) {
-        WScript.StdErr.WriteLine(msg);
-    }
-    else {
-        WScript.StdOut.WriteLine(msg);
-    }
-}
-
-// returns the contents of a file
-function read(filename) {
-    //Log('Reading in ' + filename);
-    if(fso.FileExists(filename))
-    {
-        var f=fso.OpenTextFile(filename, 1,2);
-        var s=f.ReadAll();
-        f.Close();
-        return s;
-    }
-    else
-    {
-        Log('Cannot read non-existant file : ' + filename);
-        WScript.Quit(1);
-    }
-    return null;
-}
-
-// executes a commmand in the shell
-function exec(command) {
-    var oShell=wscript_shell.Exec(command);
-    while (oShell.Status === 0) {
-        WScript.sleep(100);
-    }
-}
-
-// executes a commmand in the shell
-function exec_verbose(command) {
-    //Log("Command: " + command);
-    var oShell=wscript_shell.Exec(command);
-    while (oShell.Status === 0) {
-        //Wait a little bit so we're not super looping
-        WScript.sleep(100);
-        //Print any stdout output from the script
-        if(!oShell.StdOut.AtEndOfStream) {
-            var line = oShell.StdOut.ReadLine();
-            Log(line);
-        }
-    }
-    //Check to make sure our scripts did not encounter an error
-    if(!oShell.StdErr.AtEndOfStream)
-    {
-        var err_line = oShell.StdErr.ReadAll();
-        Log(err_line, true);
-        WScript.Quit(1);
-    }
-}
-
-function build_js(path)
-{
-    if(fso.FolderExists(path + '\\temp'))
-    {
-        fso.DeleteFolder(path + '\\temp', true);
-    }
-    fso.CreateFolder(path + '\\temp');
-    wscript_shell.CurrentDirectory = path + '\\temp';
-
-    Log('\tCloning js tagged with ' + VERSION + '...');
-    exec('%comspec% /c git clone ' + CORDOVA_JS + ' && cd cordova-js && git fetch && git checkout ' + VERSION );
-    if(!fso.FolderExists(path + '\\temp\\cordova-js'))
-    {
-        WScript.StdErr.WriteLine("ERROR: Failed to clone cordova-js. Aborting...");
-        WScript.Quit(1);
-    }
-    wscript_shell.CurrentDirectory = path + '\\temp\\cordova-js';
-    Log("Building Cordova.js...");
-
-    exec_verbose('%comspec% /c jake build');
-    if(!fso.FolderExists(path + '\\temp\\cordova-js\\pkg'))
-    {
-        WScript.StdErr.WriteLine("ERROR: Failed to build cordova-js. Aborting...");
-        WScript.Quit(1);
-    }
-
-    //copy the javascript wherever it needs to go.
-    wscript_shell.CurrentDirectory = path + '\\temp\\cordova-js\\pkg';
-    exec('%comspec% /c copy /Y cordova.windowsphone.js ' + path + STANDALONE_PATH + '\\www\\cordova.js');
-    exec('%comspec% /c copy /Y cordova.windowsphone.js ' + path + EXAMPLE_PATH + '\\www\\cordova.js');
-
-    //TODO: Delete old cordova.js (done in reversion.js)
-
-    Log("SUCESS");
-}
-
-function set_path(some_arg)
-{
-    if(some_arg.indexOf('-p:')!= -1)
-    {
-        var path = some_arg.split('-p:')[1];
-        if(fso.FolderExists(path) && fso.FolderExists(path + '\\tooling'))
-        {
-            BUILD_DESTINATION = path;
-            return true;
-        }
-        else
-        {
-            Log("ERROR: The given path is not a cordova-wp8 repo, or", true);
-            Log(" does not exist. If your trying to reversion a", true);
-            Log(" cordova repo other then this one, please provide", true);
-            Log(" it's path in the form: -p:C:\\Path\\to\\repo", true);
-            WScript.Quit(1);
-        }
-        
-    }
-    return false;
-}
-
-Log("");
-
-if(args.Count() > 1)
-{
-    set_path(args(1));
-}
-
-if(args.Count() > 0)
-{
-    //Support help flags
-    if(args(0).indexOf("--help") > -1 ||
-         args(0).indexOf("/?") > -1 )
-    {
-        Usage();
-        WScript.Quit(1);
-    }
-
-    if(args(0).match(/(\d+)[.](\d+)[.](\d+)(rc\d)?/))
-    {
-        VERSION = args(0);
-        if(args.Count()  == 1)
-        {
-            BUILD_DESTINATION = ROOT;
-        }
-    }
-    else if(set_path(arg(0))) {} //do nothing
-    else
-    {
-        Log("The provided version number is invalid, please provide", true);
-        Log(" a version number in the format Major.Minor.Fix[rc#]", true);
-        Usage();
-        WScript.Quit(1);
-    }
-}
-else
-{
-    BUILD_DESTINATION = ROOT;
-}
-
-//If we haven't quit by here, build the damn javascript!
-Log("Creating js for " + BUILD_DESTINATION);
-build_js(BUILD_DESTINATION);
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/cordova-wp8/blob/88ebdd61/wp8/tooling/scripts/createTemplates.bat
----------------------------------------------------------------------
diff --git a/wp8/tooling/scripts/createTemplates.bat b/wp8/tooling/scripts/createTemplates.bat
deleted file mode 100644
index 6aa8f80..0000000
--- a/wp8/tooling/scripts/createTemplates.bat
+++ /dev/null
@@ -1,24 +0,0 @@
-@ECHO OFF
-goto endheader
-#
-# 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.
-#
-:endheader
-
-@echo off
-cscript "%~dp0\createTemplates.js" %* //nologo
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/cordova-wp8/blob/88ebdd61/wp8/tooling/scripts/createTemplates.js
----------------------------------------------------------------------
diff --git a/wp8/tooling/scripts/createTemplates.js b/wp8/tooling/scripts/createTemplates.js
deleted file mode 100644
index fdd88b9..0000000
--- a/wp8/tooling/scripts/createTemplates.js
+++ /dev/null
@@ -1,369 +0,0 @@
-/*
-       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.
-*/
-
-var fso = WScript.CreateObject('Scripting.FileSystemObject'),
-    shell = WScript.CreateObject("shell.application"),
-    wscript_shell = WScript.CreateObject("WScript.Shell");
-
-//Set up directory structure of current release
-//arguments passed in
-var args = WScript.Arguments;
-
-//Root folder of cordova-windowsphone (i.e C:\Cordova\cordova-windowsphone)
-var repoRoot = WScript.ScriptFullName.split('\\wp8\\tooling\\', 1);
-
-//Sub folder containing templates
-var templatePath = '\\template';
-
-//Get version number
-var versionNum ='0.0.0';
-
-var platformRoot = WScript.ScriptFullName.split('\\tooling\\', 1);
-
-//  set with the -install switch, default false
-var addToVS = false;
-
-// help function
-function Usage() {
-    Log("\nUsage: createTemplates [-install]");
-    Log("Build/zips up templates from the local repo")
-    Log("    -install : also installs templates to user directory on success\n");
-}
-
-// logs messaged to stdout and stderr
-function Log(msg, error) {
-    if (error) {
-        WScript.StdErr.WriteLine(msg);
-    }
-    else {
-        WScript.StdOut.WriteLine(msg);
-    }
-}
-
-// deletes file if it exists
-function deleteFileIfExists(path) {
-    if(fso.FileExists(path)) {
-        fso.DeleteFile(path);
-   }
-}
-
-function deleteFolderIfExists(path) {
-    if(fso.FolderExists(path)) {
-        fso.DeleteFolder(path);
-    }
-}
-
-var ForReading = 1, ForWriting = 2, ForAppending = 8;
-var TristateUseDefault = -2, TristateTrue = -1, TristateFalse = 0;
-
-// returns the contents of a file
-function read(filename) {
-    if(fso.FileExists(filename))
-    {
-        var f=fso.OpenTextFile(filename, 1,2);
-        var s=f.ReadAll();
-        f.Close();
-        return s;
-    }
-    else
-    {
-        Log('Cannot read non-existant file : ' + filename,true);
-        WScript.Quit(1);
-    }
-    return null;
-}
-
-// writes the contents to the specified file
-function write(filename, contents) {
-    var f=fso.OpenTextFile(filename, ForWriting, TristateTrue);
-    f.Write(contents);
-    f.Close();
-}
-
-// replaces the matches of regexp with replacement
-function replaceInFile(filename, regexp, replacement) {
-    var text = read(filename).replace(regexp,replacement);
-    write(filename,text);
-}
-
-// executes a commmand in the shell
-function exec(command) {
-    var oShell=wscript_shell.Exec(command);
-    var maxTime = 5000;
-    while (oShell.Status === 0) {
-        if(maxTime > 0) {
-            maxTime -= 100;
-            WScript.sleep(100);
-        }
-        else {
-            Log("Exec timed out with command :: " + command);
-        }
-    }
-}
-
-// executes a commmand in the shell
-function exec_verbose(command) {
-    //Log("Command: " + command);
-    var oShell=wscript_shell.Exec(command);
-    while (oShell.Status === 0) {
-        //Wait a little bit so we're not super looping
-        WScript.sleep(100);
-        //Print any stdout output from the script
-        if(!oShell.StdOut.AtEndOfStream) {
-            Log(oShell.StdOut.ReadLine());
-        }
-    }
-    //Check to make sure our scripts did not encounter an error
-    if(!oShell.StdErr.AtEndOfStream)
-    {
-        var err_line = oShell.StdErr.ReadAll();
-        WScript.StdErr.WriteLine(err_line);
-        WScript.Quit(1);
-    }
-}
-
-function copyFile(src,dest) {
-    exec('%comspec% /c copy /Y ' + src + ' ' + dest);
-}
-
-function copyCommonScripts() {
-    var srcPath = platformRoot + "\\bin";
-    var destPath = platformRoot + templatePath + "\\cordova";
-    
-    copyFile(srcPath + "\\check_reqs.bat", destPath + "\\check_reqs.bat");
-    copyFile(srcPath + "\\check_reqs.js", destPath + "\\check_reqs.js");
-}
-
-function removeCommonScripts() {
-    var destPath = platformRoot + templatePath + "\\cordova";
-
-    deleteFileIfExists(destPath + "\\check_reqs.bat");
-    deleteFileIfExists(destPath + "\\check_reqs.js");
-}
-
-function copyCommonItemsToTemplate() {
-    var srcPath = repoRoot + '\\common';
-    var destPath = platformRoot + templatePath;
-
-    var folder = fso.GetFolder(srcPath);
-    // iterate over the files in the folder
-    for (var files = new Enumerator(folder.files) ; !files.atEnd() ; files.moveNext()) {
-        //Log("File: " + srcPath + "\\" +  files.item().name);
-        copyFile(srcPath + "\\" + files.item().name, destPath + "\\" + files.item().name);
-    }
-    // iterate over the child folders in the folder
-    for (var subFlds = new Enumerator(folder.SubFolders) ; !subFlds.atEnd() ; subFlds.moveNext()) {
-        //Log("Folder: " + srcPath + "\\" + subFlds.item().name);
-        exec('%comspec% /c xcopy /Y /E /I ' + srcPath + "\\" + subFlds.item().name + " "
-            + destPath + "\\" + subFlds.item().name);
-    }
-
-    
-}
-
-// delete desination items
-function removeCommonItems() {
-    var srcPath = repoRoot + '\\common';
-    var destPath = platformRoot + templatePath;
-    var folder = fso.GetFolder(srcPath);
-    // iterate over the files in the folder
-    for (var files = new Enumerator(folder.files) ; !files.atEnd() ; files.moveNext()) {
-        deleteFileIfExists(destPath + "\\" + files.item().name);
-    }
-    // iterate over the child folders in the folder
-    for (var subFlds = new Enumerator(folder.SubFolders) ; !subFlds.atEnd() ; subFlds.moveNext()) {
-        deleteFolderIfExists(destPath + "\\" + subFlds.item().name);
-    }
-}
-
-// packages templates into .zip
-function package_templates()
-{
-    Log("Creating template .zip files for wp8");
-    var templateOutFilename = repoRoot + '\\CordovaWP8_' + versionNum.replace(/\./g, '_') + '.zip';
-
-    // clear the destination
-    deleteFileIfExists(templateOutFilename);
-
-    // clean the template folder, if the project was opened in VS, it creates some useless cruft.
-    deleteFolderIfExists(platformRoot + templatePath + '\\Bin');
-    deleteFolderIfExists(platformRoot + templatePath + '\\obj');
-    deleteFolderIfExists(platformRoot + templatePath + '\\Service\ References');
-
-    deleteFileIfExists(platformRoot + templatePath + "\\CordovaWP8Solution.v11.suo");
-
-    //exec('%comspec% /c xcopy /Y /E /I ' + repoRoot + '\\Plugins ' + platformRoot + templatePath + '\\Plugins');
-
-    //copyCommonItemsToTemplate();
-    copyCommonScripts();
-
-    copyFile(repoRoot + '\\VERSION',platformRoot + templatePath);
-
-    copyFile(repoRoot + '\\wp8\\template\\cordova\\defaults.xml',platformRoot + templatePath + '\\config.xml');
-
-    // update .vstemplate files for the template zips.
-
-    var cleanVersionName = "CordovaWP8_" + versionNum.replace(/\./g, '_');
-
-    var projXml = WScript.CreateObject("Microsoft.XMLDOM");
-    projXml.async = false;
-    var fullTemplatePath = platformRoot + templatePath + '\\MyTemplate.vstemplate';
-    if (projXml.load(fullTemplatePath)) {
-
-        // <Name>CordovaWP8_ + versionNum.replace(/\./g, '_')</Name>
-        var xNode = projXml.selectSingleNode("VSTemplate/TemplateData/Name");
-        if(xNode != null)
-        {
-            // Log("replacing version in Name");
-            xNode.text = cleanVersionName;
-        }
-
-        // <DefaultName>CordovaWP8_ + versionNum</DefaultName>
-        xNode = projXml.selectSingleNode("VSTemplate/TemplateData/DefaultName");
-        if(xNode != null)
-        {
-            // Log("replacing version in DefaultName");
-            xNode.text = cleanVersionName  + '_';
-        }
-
-        xNode = projXml.selectSingleNode("VSTemplate/TemplateData/Description");
-        if(xNode != null)
-        {
-           xNode.text = xNode.text.replace("0.0.0", versionNum);
-        }
-        projXml.save(fullTemplatePath);
-
-    }
-
-
-    // Use proper XML-DOM named nodes and replace them with cordova current version
-    var projXml = WScript.CreateObject("Microsoft.XMLDOM");
-    projXml.async = false;
-    if (projXml.load(platformRoot + templatePath + '\\MyTemplate.vstemplate')) {
-
-        // <Name>CordovaWP7_ + versionNum.replace(/\./g, '_')</Name>
-        var xNode = projXml.selectSingleNode("VSTemplate/TemplateData/Name");
-        if(xNode != null)
-        {
-           xNode.text = "CordovaWP8_" + versionNum.replace(/\./g, '_');
-        }
-
-        // <DefaultName>CordovaWP7_ + versionNum</DefaultName>
-        xNode = projXml.selectSingleNode("VSTemplate/TemplateData/DefaultName");
-        if(xNode != null)
-        {
-           xNode.text = "CordovaWP8_" + versionNum;
-        }
-
-        projXml.save(platformRoot + templatePath + '\\MyTemplate.vstemplate');
-    }
-
-    zip_project(templateOutFilename, platformRoot + templatePath);
-
-
-    if(addToVS)
-    {
-        var template_dir = wscript_shell.ExpandEnvironmentStrings("%USERPROFILE%") + '\\Documents\\Visual Studio 2012\\Templates\\ProjectTemplates';
-        if(fso.FolderExists(template_dir ))
-        {
-            dest = shell.NameSpace(template_dir);
-            dest.CopyHere(templateOutFilename, 4|20);
-        }
-        else
-        {
-            Log("WARNING: Could not find template directory in Visual Studio,\n you can manually copy over the template .zip files.");
-        }
-        // add to VS-2013 as well
-        template_dir = wscript_shell.ExpandEnvironmentStrings("%USERPROFILE%") + '\\Documents\\Visual Studio 2013\\Templates\\ProjectTemplates';
-        if(fso.FolderExists(template_dir ))
-        {
-            dest = shell.NameSpace(template_dir);
-            dest.CopyHere(templateOutFilename, 4|20);
-        }
-    }
-
-    deleteFileIfExists(platformRoot + templatePath + '\\config.xml');
-
-    cleanUp();
-}
-
-function zip_project(zip_path, project_path) {
-    // create empty ZIP file and open for adding
-    var file = fso.CreateTextFile(zip_path, true);
-
-    // create twenty-two byte "fingerprint" for .zip
-    file.write("PK");
-    file.write(String.fromCharCode(5));
-    file.write(String.fromCharCode(6));
-    file.write('\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0');
-    file.Close();
-
-    // open .zip folder and copy contents of project_path to zip_path
-    var zipFolder = shell.NameSpace(zip_path);
-
-    var sourceItems = shell.NameSpace(project_path).items();
-    if (zipFolder !== null) {
-        zipFolder.CopyHere(sourceItems, 4|16|512|1024);
-        var maxTime = 5000;
-        //Log("sourceItems.Count = " + sourceItems.Count);
-        while(zipFolder.items().Count < sourceItems.Count)
-        {
-            maxTime -= 100;
-            if(maxTime > 0 ) {
-                WScript.Sleep(100);
-            }
-            else {
-                Log('Timeout. Failed to create .zip file.', true);
-                break;
-            }
-        }
-        //Log("zipFolder.items().Count = " + zipFolder.items().Count);
-    }
-    else {
-        Log('Failed to create .zip file.', true);
-    }
-}
-
-// delete any unneeded files when finished
-function cleanUp() {
-    //removeCommonItems();
-    removeCommonScripts();
-    deleteFileIfExists(platformRoot + templatePath + "\\VERSION");
-}
-
-function parseArgs() {
-    if(args.Count() > 0) {
-
-        //Support help flags -help, --help, /?
-        if(args(0).indexOf("-help") > -1 ||
-           args(0).indexOf("/?") > -1 ) {
-            Usage();
-            WScript.Quit(1);
-        }
-        else if(args(0).indexOf("-install") > -1) {
-            addToVS = true;
-        }
-    }
-}
-
-// MAIN
-parseArgs();
-// build/package the templates
-versionNum = read(repoRoot + "\\VERSION");
-package_templates(repoRoot);

http://git-wip-us.apache.org/repos/asf/cordova-wp8/blob/88ebdd61/wp8/tooling/scripts/dist.bat
----------------------------------------------------------------------
diff --git a/wp8/tooling/scripts/dist.bat b/wp8/tooling/scripts/dist.bat
deleted file mode 100644
index ac017d8..0000000
--- a/wp8/tooling/scripts/dist.bat
+++ /dev/null
@@ -1,24 +0,0 @@
-@ECHO OFF
-goto endheader
-#
-# 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.
-#
-:endheader
-
-@echo off
-cscript "%~dp0\dist.js" %* //nologo

http://git-wip-us.apache.org/repos/asf/cordova-wp8/blob/88ebdd61/wp8/tooling/scripts/dist.js
----------------------------------------------------------------------
diff --git a/wp8/tooling/scripts/dist.js b/wp8/tooling/scripts/dist.js
deleted file mode 100644
index 834546e..0000000
--- a/wp8/tooling/scripts/dist.js
+++ /dev/null
@@ -1,224 +0,0 @@
-/*
-       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.
-*/
-
-
-/*************************************************/
-/****************  REQUIREMENTS  *****************/
-/*************************************************/
-/*
-Paths:
-  - path to git.exe  -> C:\msysgit\bin
-  - path to msbuild -> C:\Windows\Microsoft.NET\Framework\v4.0.30319
-Famework
-  - .NET 4.0
-  - Windows phone SDKs
-
-
-/************ Globals ********/
-
-var fso = WScript.CreateObject('Scripting.FileSystemObject'),
-    wscript_shell = WScript.CreateObject("WScript.Shell");
-
-//Replace root directory or create new directory?
-var replace = false;
-
-//Set up directory structure of current release
-    //arguments passed in
-var args = WScript.Arguments,
-    //Root folder of cordova-wp8 (i.e C:\Cordova\cordova-wp8)
-    ROOT = WScript.ScriptFullName.split('\\wp8\\tooling\\', 1),
-    // tooling scripts
-    SCRIPTS = '\\tooling\\scripts';
-    //Get version number
-    VERSION=read(ROOT+'\\VERSION').replace(/\r\n/,'').replace(/\n/,'');
-
-//Destination to build to
-var BUILD_DESTINATION;
-//current script that is running
-var current_script = "dist";
-
-
-/*************************************************/
-/****************  FUNCTIONS  ********************/
-/*************************************************/
-
-
-// help function
-function Usage()
-{
-  Log("");
-  Log("This is a command line tool for building new releases. It will package a new release");
-  Log(" of a cordova-wp8 project, reversioning it to match the VERSION file in the root directory.");
-  Log("Usage: dist [ <PATH_TO_NEW_REPO> | -f ] ");
-  Log("                       -f : reversion the repositoy this script is in.");
-  Log("       <PATH_TO_NEW_REPO> : path to create the new reversioned repositoy in.");
-  Log("");
-}
-
-// logs messaged to stdout and stderr
-function Log(msg, error) {
-    if (error) {
-        WScript.StdErr.WriteLine(msg);
-    }
-    else {
-        WScript.StdOut.WriteLine(msg);
-    }
-}
-
-
-// returns the contents of a file
-function read(filename) {
-    //WScript.Echo('Reading in ' + filename);
-    if(fso.FileExists(filename))
-    {
-        var f=fso.OpenTextFile(filename, 1,2);
-        var s=f.ReadAll();
-        f.Close();
-        return s;
-    }
-    else
-    {
-        Log('Cannot read non-existant file : ' + filename);
-        WScript.Quit(1);
-    }
-    return null;
-}
-
-// executes a commmand in the shell
-function exec(command) {
-    Log("Command: " + command);
-    var oShell=wscript_shell.Exec(command);
-    while (oShell.Status === 0) {
-        //Wait a little bit so we're not super looping
-        WScript.sleep(100);
-        //Print any stdout output from the script
-        if(!oShell.StdOut.AtEndOfStream) {
-            var line = oShell.StdOut.ReadLine();
-            Log(line);
-        }
-    }
-    //Check to make sure our scripts did not encounter an error
-    if(!oShell.StdErr.AtEndOfStream)
-    {
-        var err_line = oShell.StdErr.ReadAll();
-        Log(err_line, true);
-        Log("ERROR: Could not complete distribution, failed while running: " + current_script, true);
-        WScript.Quit(1);
-    }
-}
-
-function space()
-{
-    Log("");
-    Log("*****************************************************");
-    Log("");
-}
-
-
-/*************************************************/
-/**************  MAIN SCRIPT  ********************/
-/*************************************************/
-
-if (args.Count() > 0) {
-    if (args.Count() == 1) {
-        // support help flags
-        if (args(0).indexOf("--help") > -1 ||
-              args(0).indexOf("/?") > -1 ) {
-            Usage();
-            WScript.Quit(1);
-        }
-        else if (args(0) == '-f') {
-          BUILD_DESTINATION = ROOT + '\\wp8';
-          replace = true;
-        }
-        else {
-          BUILD_DESTINATION = args(0);
-        }
-
-    }
-    else if (args.Count() == 2) {
-        if (args(0) == '-f') {
-            replace = true;
-            BUILD_DESTINATION = args(1);
-        } else {
-           BUILD_DESTINATION = args(0);
-           if (args(1) == '-f') {
-              replace = true;
-           }
-           else {
-              Log('WARNING : "' + args(1) + '" is not regognized, attempting to continue distribution.');
-           }
-        }
-    }
-    else {
-        Log("Error : too many arguments provided.", true);
-        WScript.Quit(1);
-    }
-}
-else {
-    Usage();
-    WScript.Quit(1);
-}
-
-
-/*************************************************/
-/******************  Step 1  *********************/
-/*************************************************/
-/** - Copy source code to new directory         **/
-/*************************************************/
-if (!replace) {
-  current_script = "new.js";
-  exec('cscript ' + ROOT + SCRIPTS + '\\new.js ' + BUILD_DESTINATION + ' //nologo');
-  space();
-}
-
-/*************************************************/
-/******************  Step 2  *********************/
-/*************************************************/
-/** - Retag everything with new version numbers **/
-/** - Delete any generated files and cordova.js **/
-/** - Rebuild dll                               **/
-/*************************************************/
-current_script = "reversion.js";
-exec('cscript ' + BUILD_DESTINATION + SCRIPTS + '\\reversion.js ' + VERSION + ' //nologo');
-space();
-
-/*************************************************/
-/******************  Step 3  *********************/
-/*************************************************/
-/** - Download tagged version of cordova.js     **/
-/** - build cordova.js                          **/
-/** - windows.cordova.js -> templates + example **/
-/*************************************************/
-// New Workflow does not require building the new js, it should already be in place.
-// current_script = "buildjs.js";
-// exec('cscript ' + BUILD_DESTINATION + SCRIPTS + '\\buildjs.js //nologo');
-// space();
-
-/*************************************************/
-/******************  Step 5  *********************/
-/*************************************************/
-/** - Build templates                           **/
-/** - Zip templates                             **/
-/** - inject into Visual Studio                 **/
-/*************************************************/
-current_script = "package.js";
-exec('cscript ' + BUILD_DESTINATION + SCRIPTS + '\\package.js //nologo');
-space();
-Log("Distribution Complete.");
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/cordova-wp8/blob/88ebdd61/wp8/tooling/scripts/new.bat
----------------------------------------------------------------------
diff --git a/wp8/tooling/scripts/new.bat b/wp8/tooling/scripts/new.bat
deleted file mode 100644
index 4798f6b..0000000
--- a/wp8/tooling/scripts/new.bat
+++ /dev/null
@@ -1,24 +0,0 @@
-@ECHO OFF
-goto endheader
-#
-# 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.
-#
-:endheader
-
-@echo off
-cscript "%~dp0\new.js" %* //nologo
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/cordova-wp8/blob/88ebdd61/wp8/tooling/scripts/new.js
----------------------------------------------------------------------
diff --git a/wp8/tooling/scripts/new.js b/wp8/tooling/scripts/new.js
deleted file mode 100644
index 7462965..0000000
--- a/wp8/tooling/scripts/new.js
+++ /dev/null
@@ -1,151 +0,0 @@
-/*
-       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.
-*/
-
-var fso = WScript.CreateObject('Scripting.FileSystemObject'),
-    shell = WScript.CreateObject("shell.application"),
-    wscript_shell = WScript.CreateObject("WScript.Shell");
-
-var args = WScript.Arguments,
-    //Root folder of cordova-wp8 (i.e C:\Cordova\cordova-wp8)
-    ROOT = WScript.ScriptFullName.split('\\tooling\\', 1),
-    //Sub folder containing templates
-    TEMPLATES_PATH = '\\templates',
-    //Sub folder containing framework
-    FRAMEWORK_PATH = '\\framework',
-    //Subfolder containing example project
-    EXAMPLE_PATH = '\\example';
-// git repo for cordova-wp8
-var CORDOVA_WP8 = 'https://git-wip-us.apache.org/repos/asf/cordova-wp8.git';
-//Destination to build to
-var BUILD_DESTINATION;
-// pull the project down from github?
-var GET_NEW = false;
-
-// help function
-function Usage()
-{
-    WScript.StdOut.WriteLine("");
-    WScript.StdOut.WriteLine("Usage: new [ PathToDestinationFolder ]");
-    WScript.StdOut.WriteLine("    PathToDestinationFolder : Folder you wish to be created for a new cordova-wp8 repo");
-    WScript.StdOut.WriteLine("examples:");
-    WScript.StdOut.WriteLine("    new C:\\Users\\anonymous\\Desktop\\cordova-wp8");
-    WScript.StdOut.WriteLine("");
-}
-
-// returns the contents of a file
-function read(filename) {
-    //WScript.StdOut.WriteLine('Reading in ' + filename);
-    if(fso.FileExists(filename))
-    {
-        var f=fso.OpenTextFile(filename, 1,2);
-        var s=f.ReadAll();
-        f.Close();
-        return s;
-    }
-    else
-    {
-        WScript.StdErr.WriteLine('Cannot read non-existant file : ' + filename);
-        WScript.Quit(1);
-    }
-    return null;
-}
-
-// executes a commmand in the shell
-function exec(command) {
-    var oShell=wscript_shell.Exec(command);
-    while (oShell.Status === 0) {
-        WScript.sleep(100);
-    }
-}
-
-function copy_to(path)
-{
-    //Copy everything over to BUILD_DESTINATION
-    var dest = shell.NameSpace(path);
-    WScript.StdOut.WriteLine("Copying files to build directory...");
-
-    /** copy by file instead? (just what we need)**/
-    dest.CopyHere(ROOT + "\\bin", 4|20);
-    dest.CopyHere(ROOT + EXAMPLE_PATH, 4|20);      //Should mostly be copied from standalone
-    dest.CopyHere(ROOT + FRAMEWORK_PATH, 4|20);
-    dest.CopyHere(ROOT + TEMPLATES_PATH, 4|20);
-    dest.CopyHere(ROOT + "\\tests", 4|20);
-    dest.CopyHere(ROOT + "\\tooling", 4|20);
-    dest.CopyHere(ROOT + "\\.gitignore", 4|20);
-    dest.CopyHere(ROOT + "\\LICENSE", 4|20);
-    dest.CopyHere(ROOT + "\\NOTICE", 4|20);
-    dest.CopyHere(ROOT + "\\README.md", 4|20);
-    dest.CopyHere(ROOT + "\\VERSION", 4|20);
-}
-
-WScript.StdOut.WriteLine("");
-
-if(args.Count() > 0)
-{
-    if(fso.FolderExists(args(0)))
-    {
-        WScript.StdErr.WriteLine("The given directory already exists!");
-        Usage();
-        WScript.Quit(1);
-    }
-    else
-    {
-        BUILD_DESTINATION = args(0);
-
-    }
-
-    if(!GET_NEW) {
-
-        if(fso.FolderExists(BUILD_DESTINATION))
-        {
-            WScript.StdErr.WriteLine("The given directory already exists!");
-            Usage();
-            WScript.Quit(1);
-        }
-        else
-        {
-            BUILD_DESTINATION = args(0);
-        }
-
-        // set up file structure
-        fso.CreateFolder(BUILD_DESTINATION);
-        // copy nessisary files
-        copy_to(BUILD_DESTINATION);
-    }
-    else
-    {
-        wscript_shell.CurrentDirectory = arg(0) + '\\..';
-        BUILD_DESTINATION = wscript_shell.CurrentDirectory + '\\cordova-wp8';
-
-        WScript.StdOut.WriteLine('Cloning cordova-wp8 from git, build destination now ' + BUILD_DESTINATION);
-        if(fso.FolderExists(BUILD_DESTINATION))
-        {
-            WScript.StdErr.WriteLine("Could not clone cordova-wp8 from git because it's directory already exists!");
-            WScript.Quit(1);
-        }
-
-        exec('git clone ' + CORDOVA_WP8); //git fetch --tags && git checkout?
-
-    }
-}
-else
-{
-    Usage();
-    WScript.Quit(1);
-}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/cordova-wp8/blob/88ebdd61/wp8/tooling/scripts/package.bat
----------------------------------------------------------------------
diff --git a/wp8/tooling/scripts/package.bat b/wp8/tooling/scripts/package.bat
deleted file mode 100644
index 17b38f3..0000000
--- a/wp8/tooling/scripts/package.bat
+++ /dev/null
@@ -1,24 +0,0 @@
-@ECHO OFF
-goto endheader
-#
-# 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.
-#
-:endheader
-
-@echo off
-cscript "%~dp0\package.js" %* //nologo
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/cordova-wp8/blob/88ebdd61/wp8/tooling/scripts/package.js
----------------------------------------------------------------------
diff --git a/wp8/tooling/scripts/package.js b/wp8/tooling/scripts/package.js
deleted file mode 100644
index 71b61b5..0000000
--- a/wp8/tooling/scripts/package.js
+++ /dev/null
@@ -1,257 +0,0 @@
-/*
-       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.
-*/
-
-var fso = WScript.CreateObject('Scripting.FileSystemObject'),
-    shell = WScript.CreateObject("shell.application"),
-    wscript_shell = WScript.CreateObject("WScript.Shell");
-
-var args = WScript.Arguments,
-    // root folder of cordova-wp8 (i.e C:\Cordova\cordova-wp8)
-    ROOT = WScript.ScriptFullName.split('\\tooling\\', 1),
-    // sub folder containing templates
-    TEMPLATES_PATH = '\\templates',
-    // sub folder for standalone project
-    STANDALONE_PATH = TEMPLATES_PATH + '\\standalone',
-    // sub folder containing framework
-    FRAMEWORK_PATH = '\\framework',
-    // subfolder containing example project
-    EXAMPLE_PATH = '\\example',
-    // get version number
-    VERSION=read(ROOT+'\\VERSION').replace(/\r\n/,'').replace(/\n/,''),
-    BASE_VERSION = VERSION.split('rc', 1) + ".0";
-
-// destination directory to package
-var BUILD_DESTINATION;
-// add templates to visual studio?
-var ADD_TO_VS = false;
-// build the dll?
-var BUILD_DLL = false;
-
-
-// help function
-function Usage()
-{
-    Log("");
-    Log("Usage: package [ PathToCordovaWP8 ]");
-    Log("    PathToCordovaWP8 : Cordova-wp8 repo you wish to package for release");
-    Log("examples:");
-    Log("    package C:\\Users\\anonymous\\Desktop\\cordova-wp8");
-    Log("    package     // packages current cordova directory");
-    Log("");
-}
-
-// logs messaged to stdout and stderr
-function Log(msg, error) {
-    if (error) {
-        WScript.StdErr.WriteLine(msg);
-    }
-    else {
-        WScript.StdOut.WriteLine(msg);
-    }
-}
-
-// returns the contents of a file
-function read(filename) {
-    //Log('Reading in ' + filename);
-    if(fso.FileExists(filename))
-    {
-        var f=fso.OpenTextFile(filename, 1,2);
-        var s=f.ReadAll();
-        f.Close();
-        return s;
-    }
-    else
-    {
-        Log('ERROR: Cannot read non-existant file : ' + filename);
-        WScript.Quit(1);
-    }
-    return null;
-}
-
-// executes a commmand in the shell
-function exec(command) {
-    var oShell=wscript_shell.Exec(command);
-    while (oShell.Status === 0) {
-        WScript.sleep(100);
-    }
-}
-
-// executes a commmand in the shell
-function exec_verbose(command) {
-    Log("Command: " + command);
-    var oShell=wscript_shell.Exec(command);
-    while (oShell.Status === 0) {
-        //Wait a little bit so we're not super looping
-        WScript.sleep(100);
-        //Print any stdout output from the script
-        if(!oShell.StdOut.AtEndOfStream) {
-            var line = oShell.StdOut.ReadLine();
-            Log(line);
-        }
-    }
-    //Check to make sure our scripts did not encounter an error
-    if(!oShell.StdErr.AtEndOfStream)
-    {
-        var err_line = oShell.StdErr.ReadAll();
-        Log(err_lin, true);
-        WScript.Quit(1);
-    }
-}
-
-// packages templates into .zip
-function package_templates()
-{
-    Log("Creating template .zip files ...");
-
-    var template_path = BUILD_DESTINATION + '\\CordovaWP8_' + VERSION.replace(/\./g, '_') + '.zip';
-    if(fso.FileExists(template_path))
-    {
-      fso.DeleteFile(template_path);
-    }
-
-    exec('%comspec% /c copy /Y ' + BUILD_DESTINATION + TEMPLATES_PATH + '\\vs\\MyTemplateStandAlone.vstemplate ' + BUILD_DESTINATION + STANDALONE_PATH + '\\MyTemplate.vstemplate');
-    exec('%comspec% /c copy /Y ' + BUILD_DESTINATION + TEMPLATES_PATH + '\\vs\\pg_templateIcon.png ' + BUILD_DESTINATION + STANDALONE_PATH + '\\__TemplateIcon.png');
-    exec('%comspec% /c copy /Y ' + BUILD_DESTINATION + TEMPLATES_PATH + '\\vs\\pg_templatePreview.jpg ' + BUILD_DESTINATION + STANDALONE_PATH + '\\__PreviewImage.jpg');
-    exec('%comspec% /c copy /Y ' + BUILD_DESTINATION + '\\VERSION ' + BUILD_DESTINATION + STANDALONE_PATH);
-
-    zip_project(template_path, BUILD_DESTINATION + STANDALONE_PATH);
-
-
-    if(ADD_TO_VS)
-    {
-        var template_dir = wscript_shell.ExpandEnvironmentStrings("%USERPROFILE%") + '\\Documents\\Visual Studio 2012\\Templates\\ProjectTemplates';
-        if(fso.FolderExists(template_dir ))
-        {
-            dest = shell.NameSpace(template_dir);
-            dest.CopyHere(template_path, 4|20);
-        }
-        else
-        {
-            Log("WARNING: Could not find template directory in Visual Studio,\n you can manually copy over the template .zip files.");
-        }
-  }
-}
-
-function zip_project(zip_path, project_path) 
-{    
-    // create empty ZIP file and open for adding
-    var file = fso.CreateTextFile(zip_path, true);
-
-    // create twenty-two byte "fingerprint" for .zip
-    file.write("PK");
-    file.write(String.fromCharCode(5));
-    file.write(String.fromCharCode(6));
-    file.write('\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0');
-    file.Close();
-
-    // open .zip foder and copy contents of project_path to zip_path
-    var zipFolder = shell.NameSpace(zip_path);
-    var sourceItems = shell.NameSpace(project_path).items();
-    if (zipFolder !== null) {
-        zipFolder.CopyHere(sourceItems, 4|20|16);
-        var maxTime = 5000;
-        while(zipFolder.items().Count < sourceItems.Count)
-        {
-            maxTime -= 100;
-            if(maxTime > 0 ) {    
-                WScript.Sleep(100);
-            }
-            else {
-                Log('Failed to create .zip file.', true);
-                break;
-            }
-        }
-    }
-    else {
-        Log('Failed to create .zip file.', true);
-    }
-}
-
-// builds the new cordova dll and copys it to the full template (only done because of the version referance in Device.cs)
-function build_dll()
-{
-    Log("Packaging .dll ...");
-    // move to framework directory
-    wscript_shell.CurrentDirectory = BUILD_DESTINATION + FRAMEWORK_PATH;
-    // build .dll in Release
-    exec_verbose('msbuild /p:Configuration=Release;VersionNumber=' + VERSION + ';BaseVersionNumber=' + BASE_VERSION);
-    //Check if file dll was created
-    if(!fso.FileExists(BUILD_DESTINATION + FRAMEWORK_PATH + '\\Bin\\Release\\WPCordovaClassLib.dll'))
-    {
-        WScript.StdErr.WriteLine('ERROR: MSBuild failed to create .dll.');
-        WScript.Quit(1);
-    }
-
-    Log("SUCESS");
-}
-
-// delete any unnessisary files when finished
-function cleanUp() {
-
-  if(fso.FileExists(BUILD_DESTINATION + STANDALONE_PATH + '\\MyTemplate.vstemplate')) {
-      fso.DeleteFile(BUILD_DESTINATION + STANDALONE_PATH + '\\MyTemplate.vstemplate');
-  }
-  if(fso.FileExists(BUILD_DESTINATION + STANDALONE_PATH + '\\__PreviewImage.jpg')) {
-      fso.DeleteFile(BUILD_DESTINATION + STANDALONE_PATH + '\\__PreviewImage.jpg');
-  }
-  if(fso.FileExists(BUILD_DESTINATION + STANDALONE_PATH + '\\__TemplateIcon.png')) {
-      fso.DeleteFile(BUILD_DESTINATION + STANDALONE_PATH + '\\__TemplateIcon.png');
-  }
-  //Add any other cleanup here
-}
-
-
-Log("");
-
-if(args.Count() > 0)
-{
-    //Support help flags
-    if(args(0).indexOf("--help") > -1 ||
-         args(0).indexOf("/?") > -1 )
-    {
-        Usage();
-        WScript.Quit(1);
-    }
-
-    if(fso.FolderExists(args(0)) && fso.FolderExists(args(0) + '\\tooling'))
-    {
-        BUILD_DESTINATION = args(0);
-    }
-    else
-    {
-        Log("ERROR: The given directory is not a cordova-wp8 repo.");
-        Usage();
-        WScript.Quit(1);
-
-    }
-}
-else
-{
-    BUILD_DESTINATION = ROOT;
-}
-
-// build dll for full template
-if (BUILD_DLL) {
-  build_dll();
-}
-
-// build/package the templates
-package_templates(BUILD_DESTINATION);
-
-cleanUp();
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/cordova-wp8/blob/88ebdd61/wp8/tooling/scripts/reversion.bat
----------------------------------------------------------------------
diff --git a/wp8/tooling/scripts/reversion.bat b/wp8/tooling/scripts/reversion.bat
deleted file mode 100644
index 79fa609..0000000
--- a/wp8/tooling/scripts/reversion.bat
+++ /dev/null
@@ -1,24 +0,0 @@
-@ECHO OFF
-goto endheader
-#
-# 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.
-#
-:endheader
-
-@echo off
-cscript "%~dp0\reversion.js" %* //nologo
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/cordova-wp8/blob/88ebdd61/wp8/tooling/scripts/reversion.js
----------------------------------------------------------------------
diff --git a/wp8/tooling/scripts/reversion.js b/wp8/tooling/scripts/reversion.js
deleted file mode 100644
index 24e7d71..0000000
--- a/wp8/tooling/scripts/reversion.js
+++ /dev/null
@@ -1,248 +0,0 @@
-/*
-       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.
-*/
-
-
-/************ Globals ********/
-
-var fso = WScript.CreateObject('Scripting.FileSystemObject'),
-    shell = WScript.CreateObject("shell.application"),
-    wscript_shell = WScript.CreateObject("WScript.Shell");
-
-//Get new version from git or build off this version?
-var GET_NEW = false;
-
-//Set up directory structure of current release
-    //arguments passed in
-var args = WScript.Arguments,
-    //Root folder of cordova-wp8 (i.e C:\Cordova\cordova-wp8)
-    ROOT = WScript.ScriptFullName.split('\\tooling\\', 1),
-    //Sub folder containing templates
-    TEMPLATE_PATH = '\\template',
-    //Sub folder for standalone project
-    STANDALONE_PATH = TEMPLATE_PATH,
-    //Sub folder containing framework
-    FRAMEWORK_PATH = '\\framework',
-    //Subfolder containing example project
-    EXAMPLE_PATH = '\\example',
-    //Path to cordovalib folder, containing source for .dll
-    CORDOVA_LIB = STANDALONE_PATH + '\\cordovalib',
-    //Get version number
-    VERSION='',
-    BASE_VERSION = '';
-
-//Destination to build to
-var BUILD_DESTINATION;
-
-// help function
-function Usage()
-{
-    WScript.StdOut.WriteLine("");
-    WScript.StdOut.WriteLine("Usage: reversion [ Version PathTOCordovaWP8 ]");
-    WScript.StdOut.WriteLine("    Version : The new version for codova-wp8");
-    WScript.StdOut.WriteLine("    PathTOCordovaWP8 : The path to the cordova directory being reversioned.");
-    WScript.StdOut.WriteLine("examples:");
-    WScript.StdOut.WriteLine("    reversion 2.5.0rc1  //Reversions the current working directory");
-    WScript.StdOut.WriteLine("    reversion 2.5.0 C :\\Users\\anonymous\\Desktop\\cordova-wp8");
-    WScript.StdOut.WriteLine("");
-}
-
-var ForReading = 1, ForWriting = 2, ForAppending = 8;
-var TristateUseDefault = -2, TristateTrue = -1, TristateFalse = 0;
-
-// returns the contents of a file
-function read(filename) {
-    //WScript.Echo('Reading in ' + filename);
-    if(fso.FileExists(filename))
-    {
-        var f=fso.OpenTextFile(filename, 1,2);
-        var s=f.ReadAll();
-        f.Close();
-        return s;
-    }
-    else
-    {
-        WScript.StdErr.WriteLine('Cannot read non-existant file : ' + filename);
-        WScript.Quit(1);
-    }
-    return null;
-}
-
-// writes the contents to the specified file
-function write(filename, contents) {
-    var f=fso.OpenTextFile(filename, ForWriting, TristateTrue);
-    f.Write(contents);
-    f.Close();
-}
-
-// replaces the matches of regexp with replacement
-function replaceInFile(filename, regexp, replacement) {
-    //WScript.Echo("Replaceing with "+replacement+ " in:");
-    var text = read(filename).replace(regexp,replacement);
-    //WScript.Echo(text);
-    write(filename,text);
-}
-
-// executes a commmand in the shell
-function exec(command) {
-    var oShell=wscript_shell.Exec(command);
-    while (oShell.Status === 0) {
-        WScript.sleep(100);
-    }
-}
-
-// executes a commmand in the shell
-function exec_verbose(command) {
-    //WScript.StdOut.WriteLine("Command: " + command);
-    var oShell=wscript_shell.Exec(command);
-    while (oShell.Status === 0) {
-        //Wait a little bit so we're not super looping
-        WScript.sleep(100);
-        //Print any stdout output from the script
-        if(!oShell.StdOut.AtEndOfStream) {
-            var line = oShell.StdOut.ReadLine();
-            WScript.StdOut.WriteLine(line);
-        }
-    }
-    //Check to make sure our scripts did not encounter an error
-    if(!oShell.StdErr.AtEndOfStream)
-    {
-        var err_line = oShell.StdErr.ReadAll();
-        WScript.StdErr.WriteLine(err_line);
-        WScript.Quit(1);
-    }
-}
-
-function updateVersionNumbers() {
-    WScript.StdOut.WriteLine("Updating version numbers....");
-    var version_regex = /(\d+)[.](\d+)[.](\d+)(rc\d)?/;
-    //replaceInFile(BUILD_DESTINATION + '\\VERSION', version_regex,  VERSION);
-    // replace assembaly versions in framework
-    var framework_regex = /Description\(\"(\d+)[.](\d+)[.](\d+)(rc\d)?\"\)\]/; //Will match ("x.x.x[rcx]")]
-    replaceInFile(BUILD_DESTINATION + FRAMEWORK_PATH + "\\Properties\\AssemblyInfo.cs", framework_regex, "Description(\"" + VERSION + "\")]");
-    framework_regex = /Version\(\"(\d+)[.](\d+)[.](\d+)[.](\d+)\"\)\]/g;
-    replaceInFile(BUILD_DESTINATION + FRAMEWORK_PATH + "\\Properties\\AssemblyInfo.cs", framework_regex, "Version(\"" + BASE_VERSION + "\")]");
-
-    // update standalone project
-    //exec('%comspec% /c copy /Y /V ' + BUILD_DESTINATION + "\\VERSION " + BUILD_DESTINATION + STANDALONE_PATH + "\\VERSION");
-    var cordova_regex = /cordova-(\d+)[.](\d+)[.](\d+)(rc\d)?/g; //Matches *first* cordova-x.x.x[rcx] (just ad g at end to make global)
-    version_regex = /return\s*\"(\d+)[.](\d+)[.](\d+)(rc\d)?/; //Matches return "x.x.x[rcx]
-    //replaceInFile(BUILD_DESTINATION + CORDOVA_LIB + '\\..\\Plugins\\Device.cs', version_regex,  "return \"" + VERSION);
-
-    // update .vstemplate files for the template zips.
-    var name_regex = /CordovaWP8[_](\d+)[_](\d+)[_](\d+)(rc\d)?/g;
-    var discript_regex = /version:\s*(\d+)[.](\d+)[.](\d+)(rc\d)?/;
-
-    replaceInFile(BUILD_DESTINATION + TEMPLATE_PATH + '\\MyTemplate.vstemplate', name_regex,  'CordovaWP8_' + VERSION.replace(/\./g, '_'));
-    replaceInFile(BUILD_DESTINATION + TEMPLATE_PATH + '\\MyTemplate.vstemplate', discript_regex,  "version: " + VERSION);
-}
-
-// delete all cordova.js and generated files (templates) from old version numbers
-function cleanup()
-{
-    WScript.StdOut.WriteLine("Cleanup");
-    // remove old template .zip files
-    if(fso.FileExists(BUILD_DESTINATION + '\\*.zip'))
-    {
-        fso.DeleteFile(BUILD_DESTINATION + '\\*.zip');
-    }
-    // remove any generated framework files
-    if(fso.FolderExists(BUILD_DESTINATION + FRAMEWORK_PATH + '\\Bin'))
-    {
-        fso.DeleteFolder(BUILD_DESTINATION + FRAMEWORK_PATH + '\\Bin');
-    }
-    if(fso.FolderExists(BUILD_DESTINATION + FRAMEWORK_PATH + '\\obj'))
-    {
-        fso.DeleteFolder(BUILD_DESTINATION + FRAMEWORK_PATH + '\\obj');
-    }
-    // remove any generated CordovaDeploy
-    if(fso.FolderExists(BUILD_DESTINATION + '\\tooling\\CordovaDeploy\\CordovaDeploy\\bin'))
-    {
-        fso.DeleteFolder(BUILD_DESTINATION + '\\tooling\\CordovaDeploy\\CordovaDeploy\\bin');
-    }
-    if(fso.FolderExists(BUILD_DESTINATION + '\\tooling\\CordovaDeploy\\CordovaDeploy\\obj'))
-    {
-        fso.DeleteFolder(BUILD_DESTINATION + '\\tooling\\CordovaDeploy\\CordovaDeploy\\obj');
-    }
-    //remove old template .zip files
-    WScript.Echo(BUILD_DESTINATION);
-    var root_folder = shell.NameSpace(BUILD_DESTINATION + '\\').Items();
-    for(var i = 0; i < root_folder.Count; i++)
-    {
-        if(root_folder.Item(i).Name.match(/CordovaWP8[_](\d+)[_](\d+)[_](\d+)(rc\d)?/))
-        {
-            fso.DeleteFile(BUILD_DESTINATION + '\\' + root_folder.Item(i).Name);
-        }
-    }
-}
-
-
-WScript.StdOut.WriteLine("");
-
-if(args.Count() > 1)
-{
-    if(fso.FolderExists(args(1)) && fso.FolderExists(args(1) + '\\tooling'))
-    {
-        BUILD_DESTINATION = args(1);
-    }
-    else
-    {
-        WScript.StdErr.WriteLine("The given path is not a cordova-wp8 repo, if");
-        WScript.StdErr.WriteLine(" your trying to reversion a cordova-wp8 repo");
-        WScript.StdErr.WriteLine(" other then this one, please provide its path.");
-        Usage();
-        WScript.Quit(1);
-    }
-}
-
-if(args.Count() > 0)
-{
-    //Support help flags
-    if(args(0).indexOf("--help") > -1 ||
-         args(0).indexOf("/?") > -1 )
-    {
-        Usage();
-        WScript.Quit(1);
-    }
-
-    if(args(0).match(/(\d+)[.](\d+)[.](\d+)(rc\d)?/))
-    {
-        VERSION = args(0);
-        BASE_VERSION = VERSION.split('rc', 1) + ".0";
-        if(args.Count() < 2)
-        {
-          BUILD_DESTINATION = ROOT;
-        }
-        // remove old cordova.js files and any generated files
-        cleanup();
-        // update version numbers
-        updateVersionNumbers();
-    }
-    else
-    {
-        WScript.StdOut.WriteLine("The  version number is invalid, please provide");
-        WScript.StdOut.WriteLine(" a version number in the format Major.Minor.Fix[rc#]");
-        Usage();
-        WScript.Quit(1);
-    }
-}
-else
-{
-    Usage();
-    WScript.Quit(1);
-}
\ No newline at end of file


Mime
View raw message