setOptions(array( 'baseinstalldir' => 'simpletest', 'version' => '1.0.0', 'license' => 'The Open Group Test Suite License', 'packagedirectory' => '/var/www/html/tmp/simpletest', 'state' => 'stable', 'package' => 'simpletest', 'simpleoutput' => true, 'summary' => $shortDesc, 'description' => $longDesc, 'filelistgenerator' => 'file', // generate from cvs, use file for directory 'notes' => 'See the CHANGELOG for full list of changes', 'dir_roles' => array( 'extensions' => 'php', 'test' => 'test', ), 'ignore' => array( 'packages/', 'tutorials/', 'ui/', 'docs/', '*CVS*', 'TODO', ), 'roles' => array( 'php' => 'php', 'html' => 'php', '*' => 'php', ), 'exceptions' => array( 'VERSION' => 'doc', 'HELP_MY_TESTS_DONT_WORK_ANYMORE' => 'doc', 'LICENSE' => 'doc', 'README' => 'doc', ), ) ); if (is_a($e, 'PEAR_Error')) { echo $e->getMessage(); die(); } $e = $packagexml->addMaintainer('lastcraft', 'lead', 'Marcus Baker', 'marcus@lastcraft.com'); if (is_a($e, 'PEAR_Error')) { echo $e->getMessage(); exit; } $e = $packagexml->addMaintainer('tswicegood', 'developer', 'Travis Swicegood', 'tswicegood@users.sourceforge.net'); if (is_a($e, 'PEAR_Error')) { echo $e->getMessage(); exit; } $e = $packagexml->addMaintainer('jsweat', 'helper', 'Jason Sweat', 'jsweat_php@yahoo.com'); if (is_a($e, 'PEAR_Error')) { echo $e->getMessage(); exit; } $e = $packagexml->addMaintainer('pp11', 'helper', 'Perrick Penet', 'perrick@noparking.net'); if (is_a($e, 'PEAR_Error')) { echo $e->getMessage(); exit; } $e = $packagexml->addMaintainer('shpikat', 'helper', 'Constantine Shpikat', 'shpikat@users.sourceforge.net'); if (is_a($e, 'PEAR_Error')) { echo $e->getMessage(); exit; } $e = $packagexml->addMaintainer('demianturner', 'helper', 'Demian Turner', 'demian@phpkitchen.com'); if (is_a($e, 'PEAR_Error')) { echo $e->getMessage(); exit; } // note use of {@link debugPackageFile()} - this is VERY important if (isset($_GET['make']) || (isset($_SERVER['argv'][2]) && $_SERVER['argv'][2] == 'make')) { $e = $packagexml->writePackageFile(); } else { $e = $packagexml->debugPackageFile(); } if (is_a($e, 'PEAR_Error')) { echo $e->getMessage(); die(); } ?>