X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;ds=sidebyside;f=bin%2Fpecl%2Bsig;h=02c3d1589168a54230e432390b9d097d12a7f6c9;hb=1e177129e49bd122370ed0d79d275220e82fab19;hp=7c6b9af7ec5acb99b86aee0e3332d4a28aff458c;hpb=d99c29923d4822ca1cce6cb3a285c15572571617;p=pharext%2Freplicator.pharext.org diff --git a/bin/pecl+sig b/bin/pecl+sig index 7c6b9af..02c3d15 100755 --- a/bin/pecl+sig +++ b/bin/pecl+sig @@ -24,10 +24,11 @@ function fail($pkg, $ver, $skp, $fmt) { } function sign($pkg, $ext) { - $fmt = "%s/%s-sign %s %s%s"; + $fmt = "%s/%s-%s %s %s%s"; foreach (["rsa", "gpg"] as $sig) { foreach (["", ".gz", ".bz2"] as $typ) { - passthru(sprintf($fmt, __DIR__, $sig, $pkg, $ext, $typ)); + passthru(sprintf($fmt, __DIR__, $sig, "sign", $pkg, $ext, $typ)); + passthru(sprintf($fmt, __DIR__, $sig, "vrfy", $pkg, $ext, $typ)); } } } @@ -72,10 +73,10 @@ function work($url, $dir) { require_once __DIR__."/../vendor/autoload.php"; $packager = new pharext\Packager; $packager->run(5, [ - $_SERVER["argv"][0], - "-qps", - $url, - "-Zzd", + $_SERVER["argv"][0], + "-qps", + $url, + "-Zzd", $dir ]); }; @@ -101,14 +102,14 @@ if (($sxe = simplexml_load_file("https://pecl.php.net/feeds/$what.rss"))) { break; } } - + if (count($pids) > 5) { wait($pids); } } while (wait($pids)) ; - + }