Permalink
Browse files

remove because the package don't need

  • Loading branch information...
iannsp committed Aug 7, 2011
1 parent f42c7a3 commit 0096c516cbd48dfa0a09d531488b8b5b16acd138
Showing with 0 additions and 52 deletions.
  1. +0 −52 stub.php
View
@@ -1,52 +0,0 @@
-#!/usr/bin/env php
-<?php
-/**
- * If your package does special stuff in phar format, use this file. Remove if
- * no phar format is ever generated
- * More information: http://pear.php.net/manual/en/pyrus.commands.package.php#pyrus.commands.package.stub
- */
-if (version_compare(phpversion(), '5.3.1', '<')) {
- if (substr(phpversion(), 0, 5) != '5.3.1') {
- // this small hack is because of running RCs of 5.3.1
- echo "Console_Color requires PHP 5.3.1 or newer.
-";
- exit -1;
- }
-}
-foreach (array('phar', 'spl', 'pcre', 'simplexml') as $ext) {
- if (!extension_loaded($ext)) {
- echo 'Extension ', $ext, " is required
-";
- exit -1;
- }
-}
-try {
- Phar::mapPhar();
-} catch (Exception $e) {
- echo "Cannot process Console_Color phar:
-";
- echo $e->getMessage(), "
-";
- exit -1;
-}
-function Console_Color_autoload($class)
-{
- $class = str_replace(array('_', '\\'), '/', $class);
- if (file_exists('phar://' . __FILE__ . '/Console_Color-0.4.0/php/' . $class . '.php')) {
- include 'phar://' . __FILE__ . '/Console_Color-0.4.0/php/' . $class . '.php';
- }
-}
-spl_autoload_register("Console_Color_autoload");
-$phar = new Phar(__FILE__);
-$sig = $phar->getSignature();
-define('Console_Color_SIG', $sig['hash']);
-define('Console_Color_SIGTYPE', $sig['hash_type']);
-
-// your package-specific stuff here, for instance, here is what Pyrus does:
-
-/**
- * $frontend = new \PEAR2\Pyrus\ScriptFrontend\Commands;
- * @array_shift($_SERVER['argv']);
- * $frontend->run($_SERVER['argv']);
- */
-__HALT_COMPILER();

0 comments on commit 0096c51

Please sign in to comment.