cacert-testmgr/external/ZendFramework-1.9.5/externals/dojo/util/buildscripts/changeVersion.js

13 lines
393 B
JavaScript
Raw Normal View History

//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);