<?php $dir = dirname(__FILE__); include_once($dir.'/../script/init.php'); ini_set('memory_limit','1024M'); $factory = new OpenFactory; $sourceList = array($argv[1]); $factory->buildDataSource($sourceList); $factory->wrapBySourceList($sourceList); $factory->generateIndexBySource($argv[1]); $factory->packageBySource($argv[1]);