X-Git-Url: http://git.roojs.org/?p=gnome.introspection-doc-generator;a=blobdiff_plain;f=pack.js;h=5d106891f4548048da28a604abae57bd0e8a044f;hp=52fb639d6107f82fa32f857b8b0aeccd5f35f161;hb=a8d95279269f1e0460d5cf1ba362af61c9b9f94f;hpb=2994fedbb9237bc8b059e2233ac8da17ddb0b964 diff --git a/pack.js b/pack.js index 52fb639..5d10689 100755 --- a/pack.js +++ b/pack.js @@ -4,13 +4,13 @@ * packer command line * * -o Output + * -O Output debug file here. * -t Translate json file. * -w Cache / working dir. * -f File to read with a list of source paths / or class names. * -C no cleanup (use with -w if you need are using a cache directory.) * -p prefix for translation md5 generator (directory that files are in, and is removed * from path when generating an md5 for the translated name. - * * compresses files listed as arguments and outputs result */ @@ -34,6 +34,11 @@ for(var i =0; i < args.length;i++) { i++; continue; } + if (args[i] == '-O') { + cfg.debugTarget = args[i+1]; + i++; + continue; + } if (args[i] == '-t') { cfg.translateJSON = args[i+1]; i++; @@ -49,12 +54,13 @@ for(var i =0; i < args.length;i++) { i++; continue; } + if (args[i] == '-C') { cfg.cleanup = false; continue; } if (args[i] == '-f') { - cfg.srclist = args[i+1]; + cfg.srcfile = args[i+1]; i++; continue; }