From 4be1a4daca94db50b95278744de281ab0268ede3 Mon Sep 17 00:00:00 2001 From: Jörn Zaefferer Date: Mon, 22 Dec 2008 18:27:08 +0000 Subject: Build: Fix for #3576, adding headers to minified and packed files; current solution is rather ugly, need to refactor; also removed unnecessary files from old build scripts, while adding ant-contrib-0.6.jar --- release/build/build/min.js | 11 ----------- release/build/build/pack.js | 19 ------------------- 2 files changed, 30 deletions(-) delete mode 100644 release/build/build/min.js delete mode 100644 release/build/build/pack.js (limited to 'release') diff --git a/release/build/build/min.js b/release/build/build/min.js deleted file mode 100644 index 5707d4afb..000000000 --- a/release/build/build/min.js +++ /dev/null @@ -1,11 +0,0 @@ -load("build/js/jsmin.js", "build/js/writeFile.js"); - -// arguments -var inFile = arguments[0]; -var outFile = arguments[1] || inFile.replace(/\.js$/, ".min.js"); - -var script = readFile(inFile); -var header = script.match(/\/\*(.|\n)*?\*\//)[0]; -var minifiedScript = jsmin('', script, 3); - -writeFile( outFile, header + minifiedScript ); diff --git a/release/build/build/pack.js b/release/build/build/pack.js deleted file mode 100644 index f38739201..000000000 --- a/release/build/build/pack.js +++ /dev/null @@ -1,19 +0,0 @@ -load("build/js/writeFile.js"); -load("build/js/base2.js"); -load("build/js/Packer.js"); -load("build/js/Words.js"); - -// arguments -var inFile = arguments[0]; -var outFile = arguments[1] || inFile.replace(/\.js$/, ".pack.js"); - -// options -var base62 = true; -var shrink = true; - -var script = readFile(inFile); -var header = script.match(/\/\*(.|\n)*?\*\//)[0]; -var packer = new Packer; -var packedScript = packer.pack(script, base62, shrink); - -writeFile(outFile, header + "\n" + packedScript); -- cgit v1.2.3