* usefull for debugging compressed files.
*/
- public bool keepWhite = true;
+ public bool keepWhite = false;
// list of files to compile...
}
- print("COMPRESSING ");
+ print("COMPRESSING to %s\n", minfile);
//var codeComp = pack(str, 10, 0, 0);
if (FileUtils.test (minfile, FileTest.EXISTS)) {
FileUtils.remove(minfile);
}
- print("MERGING SOURCE");
+ print("MERGING SOURCE\n");
for(var i=0; i < this.files.size; i++) {
var file = this.files[i];
if ( FileUtils.test(minfile, FileTest.EXISTS)) {
+ print("skipping source %s - does not exist\n", minfile);
continue;
}
string str;
}
}
- print("Output file: " + this.target);
+ if (this.target.length > 0 ) {
+ print("Output file: " + this.target);
+ }
if (this.targetDebug.length > 0) {
- print("Output debug file: " + this.targetDebug);
- }
-
+ print("Output debug file: %s\n" , this.targetDebug);
+ }
+
+ if (this.outstr.length > 0 ) {
+ print(this.outstr);
+ }
//print(JSON.stringify(toks, null,4 )); Seed.quit();
var ts = new Collapse(toks.tokens);
- print("Done collaps");
- GLib.Process.exit(1);
+ //ts.dumpAll(""); print("Done collaps"); Process.exit(1);
// print(JSON.stringify(ts.tokens, null,4 )); Seed.quit();
//return;//
var outf = CompressWhite(new TokenStream(toks.tokens), this, this.keepWhite); // do not kill whitespace..
-
+ print("RESULT: \n %s\n", outf);
if (outf.length > 0) {
FileUtils.set_contents(minfile, outf);
- }
+ }
+
return outf;