Commit e7fef859 authored by Jörn Zaefferer's avatar Jörn Zaefferer

global replace for @VERSION, fixed #2101

parent 0635df43
load("build/js/writeFile.js"); load("build/js/writeFile.js");
var file = arguments[0]; 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, "" )));
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment