diff options
author | redmatrix <redmatrix@redmatrix.me> | 2015-07-05 19:52:41 -0700 |
---|---|---|
committer | redmatrix <redmatrix@redmatrix.me> | 2015-07-05 19:52:41 -0700 |
commit | f20933e1e0f955d49fff3780c367ea2edf581728 (patch) | |
tree | d384d386afc276e666c853051256bbe912412261 /util | |
parent | df8f6e45e244be95dd8ddc51e1f0b1245eaebc6e (diff) | |
download | volse-hubzilla-f20933e1e0f955d49fff3780c367ea2edf581728.tar.gz volse-hubzilla-f20933e1e0f955d49fff3780c367ea2edf581728.tar.bz2 volse-hubzilla-f20933e1e0f955d49fff3780c367ea2edf581728.zip |
more work on db storage of doco
Diffstat (limited to 'util')
-rwxr-xr-x | util/importdoc | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/util/importdoc b/util/importdoc new file mode 100755 index 000000000..b89e12e97 --- /dev/null +++ b/util/importdoc @@ -0,0 +1,33 @@ +#!/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/*'); + + + |