forked from theshock/atomjs
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild
More file actions
executable file
·32 lines (20 loc) · 695 Bytes
/
build
File metadata and controls
executable file
·32 lines (20 loc) · 695 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/usr/bin/env php
<?php
$stderr = fopen('php://stderr', 'w');
array_shift($argv);
require dirname(__FILE__) . '/Packager/packager.php';
$package = dirname(__FILE__) . '/Source';
$pkg = new Packager($package);
$files = (empty($argv)) ? $pkg->get_all_files() : $pkg->components_to_files($argv);
$files = $pkg->complete_files($files);
fwrite($stderr, "/**\n");
fwrite($stderr, " * AtomJS\n * \n");
fwrite($stderr, " * Included Components:\n");
foreach ($files as $file){
fwrite($stderr, " * - $file: [" . implode(", ", $pkg->get_file_provides($file)) . "]\n");
}
fwrite($stderr, " */\n\n");
$output = $pkg->build($files, array(), array(), array());
echo $output;
fclose($stderr);
?>