X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=pack.js;h=4c589b3269c7496926b2d819de3ef9c85ce95676;hb=07141a13d78aaf413977d96350ea8d625429d7c9;hp=9a2e08d9d6f8741e58683eba30a7469418297c82;hpb=893cf809e7de23c187986ec730f202e3270c7bf7;p=gnome.introspection-doc-generator diff --git a/pack.js b/pack.js index 9a2e08d..4c589b3 100644 --- a/pack.js +++ b/pack.js @@ -11,6 +11,8 @@ * -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 */ @@ -27,6 +29,8 @@ args.shift(); // pack.js var cfg = { files : [], target : false, + srcfiles : [], + autoBuild : false } @@ -62,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. }