mirror of
https://github.com/YunoHost-Apps/hubzilla_ynh.git
synced 2024-09-03 19:26:21 +02:00
34 lines
466 B
Text
34 lines
466 B
Text
|
#!/usr/bin/env php
|
||
|
<?php
|
||
|
|
||
|
require_once('include/cli_startup.php');
|
||
|
|
||
|
cli_startup();
|
||
|
|
||
|
require_once('mod/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/*');
|
||
|
|
||
|
|
||
|
|