Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

- mootools 1.3 can now be built using "./build -1.2compat".

  • Loading branch information...
commit bbd473cec8d7dc2a10a22df4a1bbec39dfe81d5f 1 parent 32c1d18
Valerio Proietti kamicane authored
Showing with 15 additions and 1 deletion.
  1. +15 −1 build
16 build
View
@@ -14,6 +14,16 @@ $pkg = new Packager($package);
fwrite($stderr, "\nPackager is building $package\n\n");
fwrite($stderr, "Included Components:\n");
+$no_compat = false;
+
+foreach ($argv as $arg){
+ if ($arg == '-1.2compat'){
+ array_erase($argv, $arg);
+ $no_compat = true;
+ break;
+ }
+}
+
$files = (empty($argv)) ? $pkg->get_all_files() : $pkg->components_to_files($argv);
foreach ($files as $file){
@@ -22,7 +32,11 @@ foreach ($files as $file){
fwrite($stderr, "\n");
-echo $pkg->build_from_components($argv);
+$output = $pkg->build_from_components($argv);
+
+if ($no_compat) $output = preg_replace("%//=1\.2compat+.*///=%sU", '', $output);
+
+echo $output;
fclose($stderr);
Please sign in to comment.
Something went wrong with that request. Please try again.