diff --git a/build.sh b/build.sh index 7e3efad..ccf0156 100644 --- a/build.sh +++ b/build.sh @@ -1,2 +1,2 @@ #!/usr/bin/env bash -php build.php +php build.php $* diff --git a/pack.php b/pack.php index efe03a0..17e8984 100644 --- a/pack.php +++ b/pack.php @@ -10,10 +10,10 @@ $module_index = json_decode(file_get_contents("module_index.json")); $module_list = []; foreach($module_index as $module) { - // If the module is optional, the module's id isn't present in the command line arguments, and the special '*' module id wasn't passed in, skip it + // If the module is optional, the module's id isn't present in the command line arguments, and the special 'all' module id wasn't passed in, skip it if($module->optional && strrpos(implode(" ", $argv), $module->id) === false && - !in_array("*", $argv)) continue; + !in_array("all", $argv)) continue; $module_list[] = $module->id; }