}
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));
}
}
}
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
]);
};
break;
}
}
-
+
if (count($pids) > 5) {
wait($pids);
}
}
while (wait($pids))
;
-
+
}