X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=pack.js;h=4c589b3269c7496926b2d819de3ef9c85ce95676;hb=07141a13d78aaf413977d96350ea8d625429d7c9;hp=3a17a4c267e74386ae6068cab4219f34830342e1;hpb=8b882e6abb3281639eea6cb3850054af2550f6ce;p=gnome.introspection-doc-generator diff --git a/pack.js b/pack.js old mode 100755 new mode 100644 index 3a17a4c..4c589b3 --- a/pack.js +++ b/pack.js @@ -11,12 +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; + -Packer = imports['JSDOC/Packer.js'].Packer; -File = imports.File.File; @@ -26,6 +29,8 @@ args.shift(); // pack.js var cfg = { files : [], target : false, + srcfiles : [], + autoBuild : false } @@ -55,15 +60,21 @@ for(var i =0; i < args.length;i++) { i++; continue; } + if (args[i] == '-C') { cfg.cleanup = false; 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. }