home *** CD-ROM | disk | FTP | other *** search
- !!Script
-
- var gOutput = getOutput("Build");
-
- function DoCommand()
- {
- alert("You must edit this script before running it");
- return;
-
- var tool = newTool();
-
- // To run a bat or command file you need to use the runbatch.exe tool
- var runbatch = File.getApplicationPath() + "\\Ide\\Programs\\runbatch.exe";
-
- var commandLine = runbatch + " nmake.exe"; // this assumes that nmake is
- // in a folder in the PATH envrionment variable.
-
- // -------------------------------------------------------------------
- // Add nmake options as needed
- // Create a copy of this script for different build commands
- // e.g., commandLine += "/f client.mak build_all";
- // -------------------------------------------------------------------
-
- // -------------------------------------------------------------------
- // Set environment varialbles if not set in environment using
- // tool.setEnvironmentVariable(<name>, <value>);
- // -------------------------------------------------------------------
-
- // -------------------------------------------------------------------
- // Set directory if needed using File.setDirectory(<path>)
- // -------------------------------------------------------------------
-
- gOutput.writeLine("Command line: " + commandLine);
-
- var startData = new Date();
-
- tool.run(commandLine);
-
- var endDate = new Date();
- var buildTime = (endDate.getTime() - startData.getTime())/1000;
- gOutput.writeLine("" + "Finished - build time: " + buildTime + " seconds");
- }
-
- !!/Script
-
-