4 * Creates bin/pharext.update, invoked through the Makefile
7 set_include_path(dirname(__DIR__
)."/src:".get_include_path());
8 spl_autoload_register(function($c) {
9 return include strtr($c, "\\_", "//") . ".php";
12 $file = (new pharext\Task\
PharBuild(null, __DIR__
."/../src/pharext_updater.php", pharext\Metadata
::all() +
[
13 "name" => "pharext.update",
14 "license" => file_get_contents(__DIR__
."/../LICENSE")
18 $pass = (new pharext\Task\Askpass
)->run();
19 $sign = new pharext\Task\
PharSign($file, __DIR__
."/pharext.update.key", $pass);
21 $pkey->exportPublicKey(__DIR__
."/../bin/pharext.update.pubkey");
24 /* we do not need the extra logic of Task\PharRename */
25 rename($file, __DIR__
."/../bin/pharext.update");