8398c9048d
code was modified slightly, so the code differs from the original downloadable 1.9.5 version
17 lines
575 B
JavaScript
17 lines
575 B
JavaScript
//Make a copy of the tests dir, then run this script, giving the location
|
|
//of the tests copy, and the URL to use dojo.js
|
|
|
|
var startDir = arguments[0];
|
|
var xdDojoUrl = arguments[1];
|
|
|
|
load("jslib/fileUtil.js");
|
|
load("jslib/buildUtil.js");
|
|
|
|
var fileList = fileUtil.getFilteredFileList(startDir, /\.(html|htm)$/, true);
|
|
|
|
for(var i = 0; i < fileList.length; i++){
|
|
var fileName = fileList[i];
|
|
var fileContents = fileUtil.readFile(fileName);
|
|
fileContents = fileContents.replace(/src\=\".*dojo.js"/, 'src="' + xdDojoUrl + '"');
|
|
fileUtil.saveUtf8File(fileName, fileContents);
|
|
}
|