Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

- updated Packager and the build file to use Packager's blocks removal.

  • Loading branch information...
commit 3cd2c0b0fb34d56e854a134df15ec1f1af76159b 1 parent 310be79
@kamicane kamicane authored
Showing with 5 additions and 11 deletions.
  1. +1 −1  Packager
  2. +4 −10 build
2  Packager
@@ -1 +1 @@
-Subproject commit 661cf466a2d4fcb4020710e5a444919ff58713e2
+Subproject commit fc36b28cf5e6906845cd6b36d3d16c25af39c717
View
14 build
@@ -1,5 +1,4 @@
#!/usr/bin/env php
-
<?php
$stderr = fopen('php://stderr', 'w');
@@ -11,7 +10,7 @@ $package = dirname(__FILE__);
$pkg = new Packager($package);
-fwrite($stderr, "\nPackager is building $package\n\n");
+fwrite($stderr, "Packager is building MooTools Core\n\n");
fwrite($stderr, "Included Components:\n");
$no_compat = false;
@@ -26,18 +25,13 @@ foreach ($argv as $arg){
$files = (empty($argv)) ? $pkg->get_all_files() : $pkg->components_to_files($argv);
+$files = $pkg->complete_files($files);
+
foreach ($files as $file){
fwrite($stderr, "- $file: [" . implode(", ", $pkg->get_file_provides($file)) . "]\n");
}
-fwrite($stderr, "\n");
-
-$output = $pkg->build_from_files($files);
-
-if ($no_compat){
- $output = preg_replace("%//<1\.2compat>.*?//</1\.2compat>%s", '', $output);
- $output = preg_replace("%/\*<1\.2compat>.*?</1.2compat>\*/%s", '', $output);
-}
+$output = $pkg->build($files, array(), array(), ($no_compat) ? array("1.2compat") : array());
echo $output;
Please sign in to comment.
Something went wrong with that request. Please try again.