4 $stderr = fopen('php://stderr', 'w');
6 require dirname(__FILE__
) . '/Packager/packager.php';
8 $executable = array_shift($argv);
9 $package = dirname(__FILE__
);
11 $pkg = new Packager($package);
13 fwrite($stderr, "Packager is building MooTools Core\n\n");
14 fwrite($stderr, "Included Components:\n");
18 foreach ($argv as $arg){
19 if ($arg == '-1.2compat'){
20 array_erase($argv, $arg);
26 $files = (empty($argv)) ?
$pkg->get_all_files() : $pkg->components_to_files($argv);
28 $files = $pkg->complete_files($files);
30 foreach ($files as $file){
31 fwrite($stderr, "- $file: [" . implode(", ", $pkg->get_file_provides($file)) . "]\n");
34 $output = $pkg->build($files, array(), array(), ($no_compat) ?
array("1.2compat") : array());