cacert-testmgr/external/ZendFramework-1.9.5/externals/dojo/util/buildscripts/changeVersion.js
Markus Warg 8398c9048d initially import ZendFramework-1.9.5 into repository
code was modified slightly, so the code differs from the original downloadable 1.9.5 version
2010-03-31 10:12:32 +02:00

13 lines
No EOL
393 B
JavaScript

//Changes the Dojo version in a file. Used during the release process.
var version = new String(arguments[0]);
var fileName = new String(arguments[1]);
load("jslib/logger.js");
load("jslib/fileUtil.js");
load("jslib/buildUtil.js");
var fileContents = fileUtil.readFile(fileName);
fileContents = buildUtil.changeVersion(version, fileContents);
fileUtil.saveUtf8File(fileName, fileContents);