Skip to content

Commit

Permalink
Make package.php a bit less complex
Browse files Browse the repository at this point in the history
  • Loading branch information
kenguest committed May 13, 2020
1 parent a0d4b77 commit 4fa6640
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions package.php
Expand Up @@ -64,10 +64,11 @@
$packagexml->addGlobalReplacement('package-info', '@PEAR-VER@', 'version');
$packagexml->generateContents();

if (isset($_GET['make'])
|| (isset($_SERVER['argv'])
&& @$_SERVER['argv'][1] == 'make')
) {
$argv = $_SERVER['argv'];
if (count($argv) > 1) {
$command = $argv[1];
}
if ($command === "make") {
$packagexml->writePackageFile();
} else {
$packagexml->debugPackageFile();
Expand Down

0 comments on commit 4fa6640

Please sign in to comment.