add bin/pharext.update
[pharext/pharext] / build / create-phar.php
diff --git a/build/create-phar.php b/build/create-phar.php
deleted file mode 100644 (file)
index 26ac6e9..0000000
+++ /dev/null
@@ -1,25 +0,0 @@
-<?php
-
-/**
- * Creates bin/pharext, invoked through the Makefile
- */
-
-set_include_path(dirname(__DIR__)."/src:".get_include_path());
-spl_autoload_register(function($c) {
-       return include strtr($c, "\\_", "//") . ".php";
-});
-
-$file = (new pharext\Task\PharBuild(null, __DIR__."/../src/pharext_packager.php", pharext\Metadata::all() + [
-       "name" => "pharext",
-       "license" => file_get_contents(__DIR__."/../LICENSE")
-], false))->run();
-
-if (getenv("SIGN")) {
-       $pass = (new pharext\Task\Askpass)->run();
-       $sign = new pharext\Task\PharSign($file, __DIR__."/pharext.key", $pass);
-       $pkey = $sign->run();
-       $pkey->exportPublicKey(__DIR__."/../bin/pharext.pubkey");
-}
-
-/* we do not need the extra logic of Task\PharRename */
-rename($file, __DIR__."/../bin/pharext");