X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=pack.js;h=4c589b3269c7496926b2d819de3ef9c85ce95676;hb=07141a13d78aaf413977d96350ea8d625429d7c9;hp=ea90e26b4fb9aa38765650c76d25a45238c05dc3;hpb=5ebbee37549195bcf7e50adff1bc26668532724e;p=gnome.introspection-doc-generator diff --git a/pack.js b/pack.js old mode 100755 new mode 100644 index ea90e26..4c589b3 --- a/pack.js +++ b/pack.js @@ -11,11 +11,15 @@ * -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. + * -a autoBuild - puts target in INPUTDIR/compiled/Core-TIMESTAMP.js and enabled translastion + * -m module name used with autoBuild to force a module name. * compresses files listed as arguments and outputs result */ + File = imports.File.File; Packer = imports.JSDOC.Packer.Packer; + @@ -25,6 +29,8 @@ args.shift(); // pack.js var cfg = { files : [], target : false, + srcfiles : [], + autoBuild : false } @@ -60,10 +66,15 @@ for(var i =0; i < args.length;i++) { continue; } if (args[i] == '-f') { - cfg.srcfile = args[i+1]; + cfg.srcfiles.push(args[i+1]); i++; continue; } + + if (args[i] == '-a') { + cfg.autoBuild = true + continue; + } if (cfg.files.indexOf(args[i]) > -1) { continue; // remove dupes. }