!!Script // put the current file under version control. // runs p4 add <filename> // // (c) 2000 Software System Group, TU Harburg // Axel Wienberg, ax.wienberg@tu-harburg.de // // based on CSRCS binding by joe robertson, jmrobert@ro.com // var perfdir = File.getApplicationPath() + "\\Tools\\Perforce"; function DoCommand() { output = getOutput() var editor = getActiveEditor(); var thisfile = editor.getFile(); // common function moved to utilities var util = getScriptObject(perfdir + "\\utilities.script"); var p4exe = util.getP4ExePath(); if (p4exe == null){ output.writeLine("P4 executable not found."); } else { //set command line var program = p4exe + " add "; var commandLine = program + thisfile.path; //run it var tool = newTool(); tool.showCommandWindow = false; tool.async = true; tool.run(commandLine); } } !!/Script
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#1 | 1014 | axel_wienberg |
copied perforte and sitepadp4 files from my homepage to the public depot. happy branching and improving :-) |