public function option_help($k, $v) { $version = PHPacking_Config::version(); echo <<<HELP PHPacking Version: {$version} Copyright (c) 2009 The PHP Amazonas Group -f <formatname> --format <formatname> The build format to use -l --list Print out the supported plugins -o <directory> --output <directory> The output directory (default: .) -v --version Print the PHPacking version information -h --help This help HELP; exit(0); }
#!@php_bin@ <?php define('DS', DIRECTORY_SEPARATOR); define('__INSTALLDIR__', '@php_dir@' == '@' . 'php_dir@' ? __DIR__ : '@php_dir@'); require __INSTALLDIR__ . DS . 'PHPacking' . DS . 'AutoLoader.php'; //Registering the PHPacking Auto Loader function PHPacking_AutoLoader::register(); //TODO Registering the Error Handler //Parsing options $optionsParser = new PHPacking_OptionsParser(); $optionsParser->parseOptions(); $formats = PHPacking_Config::output_format(); foreach ($formats as $format) { $builder = PHPacking_Plugin_Factory::createFormat($format); $builder->init(); $builder->execute(); $builder->finalize(); }