Fixes #2367, closes #2467 - Use the check when using delegation for mouseenter.
[mootools.git] / build
blob2fbb9dd5419d2fc5a3baa62ffcf634a6338c50e9
1 #!/usr/bin/env php
2 <?php
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");
16 $no_compat = false;
18 foreach ($argv as $arg){
19 if ($arg == '-1.2compat'){
20 array_erase($argv, $arg);
21 $no_compat = true;
22 break;
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());
36 echo $output;
38 fclose($stderr);