global replace for @VERSION, fixed #2101

This commit is contained in:
Jörn Zaefferer 2008-01-20 14:23:22 +00:00
parent 0635df4391
commit e7fef859f1

View File

@ -1,4 +1,4 @@
load("build/js/writeFile.js");
var file = arguments[0];
writeFile(file, readFile(file).replace("@VERSION", readFile("version.txt").replace( /^\s+|\s+$/g, "" )));
writeFile(file, readFile(file).replace(new RegExp("@VERSION", "g"), readFile("version.txt").replace( /^\s+|\s+$/g, "" )));