aboutsummaryrefslogblamecommitdiffstats
path: root/util/importdoc
blob: 087f472bc2cb6d2a8c4860fa9a7d55293f1be406 (plain) (tree)
1
2
3
4
5
6
7
8






                                        
                                 
























                                                         
#!/usr/bin/env php
<?php

require_once('include/cli_startup.php');

cli_startup();

require_once('include/help.php');

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) {
			if($fi === 'doc/html')
				continue;
			echo $fi . "\n";
			if(is_dir($fi))
				update_docs_dir("$fi/*");
			else
				store_doc_file($fi);
		}
	}
}

update_docs_dir('doc/*');