separate objs/things from taxonomy
This commit is contained in:
@@ -1,17 +1,30 @@
|
||||
<?php
|
||||
|
||||
|
||||
|
||||
require_once('include/cli_startup.php');
|
||||
|
||||
cli_startup();
|
||||
|
||||
require_once('mod/help.php');
|
||||
function importdoc_run($argv, $argc){
|
||||
|
||||
cli_startup();
|
||||
|
||||
require_once('mod/help.php');
|
||||
|
||||
|
||||
update_docs_dir('doc/*');
|
||||
|
||||
}
|
||||
if (array_search(__file__,get_included_files())===0){
|
||||
importdoc_run($argv,$argc);
|
||||
killme();
|
||||
}
|
||||
|
||||
function update_docs_dir($s) {
|
||||
$f = basename($s);
|
||||
$d = dirname($s);
|
||||
if($s === 'doc/html')
|
||||
return;
|
||||
|
||||
$files = glob("$d/$f");
|
||||
if($files) {
|
||||
foreach($files as $fi) {
|
||||
@@ -25,7 +38,4 @@ function update_docs_dir($s) {
|
||||
}
|
||||
}
|
||||
|
||||
update_docs_dir('doc/*');
|
||||
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user