diff options
author | dvs1 | 2025-01-09 14:47:41 +1000 |
---|---|---|
committer | dvs1 | 2025-01-09 14:47:41 +1000 |
commit | 212a54b8c2f5fb0774e19c78ea50cf9b7e8b95c0 (patch) | |
tree | 5e94467a3f58bbe0a360e91c5846b857400d2fdc | |
parent | Run the conversion scripts in the Devuan wiki's hard coded paths. (diff) | |
download | notYetAnotherWiki-212a54b8c2f5fb0774e19c78ea50cf9b7e8b95c0.zip notYetAnotherWiki-212a54b8c2f5fb0774e19c78ea50cf9b7e8b95c0.tar.gz notYetAnotherWiki-212a54b8c2f5fb0774e19c78ea50cf9b7e8b95c0.tar.bz2 notYetAnotherWiki-212a54b8c2f5fb0774e19c78ea50cf9b7e8b95c0.tar.xz |
Create Foswiki subdirectories.
-rwxr-xr-x | SuckItFos | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -18,7 +18,9 @@ do | |||
18 | base=`echo "${line}" | cut -d '/' -f 1` | 18 | base=`echo "${line}" | cut -d '/' -f 1` |
19 | file=`echo "${line}" | cut -d '/' -f 2- | rev | cut -b 5- | rev` | 19 | file=`echo "${line}" | cut -d '/' -f 2- | rev | cut -b 5- | rev` |
20 | mkdir -p Foswiki/$base | 20 | mkdir -p Foswiki/$base |
21 | mkdir -p Foswiki/${base}/`dirname ${file}` | ||
21 | mkdir -p combined/$base | 22 | mkdir -p combined/$base |
23 | mkdir -p combined/${base}/`dirname ${file} | ||
22 | echo "Converting ${URL}/${base}/${file} -> Foswiki/${base}/${file}.md" | 24 | echo "Converting ${URL}/${base}/${file} -> Foswiki/${base}/${file}.md" |
23 | # pandoc -f html -t markdown --self-contained ${URL}/${base}/${file} >Foswiki/${base}/${file}.md | 25 | # pandoc -f html -t markdown --self-contained ${URL}/${base}/${file} >Foswiki/${base}/${file}.md |
24 | # TODO - try curl, to see what is actually downloaded, and maybe not download unchanged pages. curl to .HTM | 26 | # TODO - try curl, to see what is actually downloaded, and maybe not download unchanged pages. curl to .HTM |