Skip to content
This repository
Newer
Older
100755 29 lines (17 sloc) 0.588 kb
9803e494 » kamicane
2009-12-20 - added a build script using packager.
1 #!/usr/bin/env php
2
3 <?php
4
5 $stderr = fopen('php://stderr', 'w');
6
e0d1a738 » kamicane
2009-12-20 - renamed the packager folder to Packager per mootools convention
7 require __DIR__ . '/Packager/packager.php';
9803e494 » kamicane
2009-12-20 - added a build script using packager.
8
9 $executable = array_shift($argv);
62d92a6f » kamicane
2010-03-23 updated the build script for the latest packager
10 $package = __DIR__;
9803e494 » kamicane
2009-12-20 - added a build script using packager.
11
62d92a6f » kamicane
2010-03-23 updated the build script for the latest packager
12 $pkg = new Packager($package);
9803e494 » kamicane
2009-12-20 - added a build script using packager.
13
62d92a6f » kamicane
2010-03-23 updated the build script for the latest packager
14 fwrite($stderr, "\nPackager is building $package\n\n");
9803e494 » kamicane
2009-12-20 - added a build script using packager.
15 fwrite($stderr, "Included Components:\n");
16
17 $files = (empty($argv)) ? $pkg->get_all_files() : $pkg->components_to_files($argv);
18
19 foreach ($files as $file){
20 fwrite($stderr, "- $file: [" . implode(", ", $pkg->get_file_provides($file)) . "]\n");
21 }
22
23 fwrite($stderr, "\n");
24
25 echo $pkg->build_from_components($argv);
26
27 fclose($stderr);
28
29 ?>
Something went wrong with that request. Please try again.