Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100755 41 lines (26 sloc) 0.832 kB
9803e49 @kamicane - added a build script using packager.
kamicane authored
1 #!/usr/bin/env php
2 <?php
3
4 $stderr = fopen('php://stderr', 'w');
5
da666f9 @kamicane - changed blocks syntax again, XML style.
kamicane authored
6 require dirname(__FILE__) . '/Packager/packager.php';
9803e49 @kamicane - added a build script using packager.
kamicane authored
7
8 $executable = array_shift($argv);
da666f9 @kamicane - changed blocks syntax again, XML style.
kamicane authored
9 $package = dirname(__FILE__);
9803e49 @kamicane - added a build script using packager.
kamicane authored
10
62d92a6 @kamicane updated the build script for the latest packager
kamicane authored
11 $pkg = new Packager($package);
9803e49 @kamicane - added a build script using packager.
kamicane authored
12
3cd2c0b @kamicane - updated Packager and the build file to use Packager's blocks removal.
kamicane authored
13 fwrite($stderr, "Packager is building MooTools Core\n\n");
9803e49 @kamicane - added a build script using packager.
kamicane authored
14 fwrite($stderr, "Included Components:\n");
15
bbd473c @kamicane - mootools 1.3 can now be built using "./build -1.2compat".
kamicane authored
16 $no_compat = false;
17
18 foreach ($argv as $arg){
19 if ($arg == '-1.2compat'){
20 array_erase($argv, $arg);
21 $no_compat = true;
22 break;
23 }
24 }
25
9803e49 @kamicane - added a build script using packager.
kamicane authored
26 $files = (empty($argv)) ? $pkg->get_all_files() : $pkg->components_to_files($argv);
27
3cd2c0b @kamicane - updated Packager and the build file to use Packager's blocks removal.
kamicane authored
28 $files = $pkg->complete_files($files);
29
9803e49 @kamicane - added a build script using packager.
kamicane authored
30 foreach ($files as $file){
31 fwrite($stderr, "- $file: [" . implode(", ", $pkg->get_file_provides($file)) . "]\n");
32 }
33
3cd2c0b @kamicane - updated Packager and the build file to use Packager's blocks removal.
kamicane authored
34 $output = $pkg->build($files, array(), array(), ($no_compat) ? array("1.2compat") : array());
bbd473c @kamicane - mootools 1.3 can now be built using "./build -1.2compat".
kamicane authored
35
36 echo $output;
9803e49 @kamicane - added a build script using packager.
kamicane authored
37
38 fclose($stderr);
39
40 ?>
Something went wrong with that request. Please try again.