root/trunk/build.php

Revision 141, 1.0 kB (checked in by mikey, 3 months ago)

merge changes from PRE_NAMESPACES branch

Line 
1 <?php
2 require 'star/starWriter.php';
3 $starArchive = new StarArchive(new StarWriter('build/xjconf.star'));
4 $dirIt       = new RecursiveIteratorIterator(new RecursiveDirectoryIterator('XJConf'));
5 $removePath  = dirname(__FILE__);
6 foreach ($dirIt as $file) {
7     if ($file->isFile() == false || substr($file->getPathname(), -4) != '.php') {
8         continue;
9     }
10     
11     $fqClassName = str_replace('/', '::', str_replace('XJConf/', 'net/xjconf/', str_replace(DIRECTORY_SEPARATOR, '/', str_replace('.php', '', $file->getPathname()))));
12     $starArchive->add(new StarFile($file->getPathname(), $removePath), $fqClassName);
13 }
14 $starArchive->addMetaData('title', 'XJConf for PHP');
15 $starArchive->addMetaData('package', 'net::xjconf');
16 $starArchive->addMetaData('version', '0.4.0dev');
17 $starArchive->addMetaData('author', 'XJConf Development Team <http://php.xjconf.net>');
18 $starArchive->addMetaData('copyright', '(c) 2007-2008 XJConf Development Team');
19 $starArchive->create();
20 ?>
Note: See TracBrowser for help on using the browser.