aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authordvs12025-01-09 14:47:41 +1000
committerdvs12025-01-09 14:47:41 +1000
commit212a54b8c2f5fb0774e19c78ea50cf9b7e8b95c0 (patch)
tree5e94467a3f58bbe0a360e91c5846b857400d2fdc
parentRun the conversion scripts in the Devuan wiki's hard coded paths. (diff)
downloadnotYetAnotherWiki-212a54b8c2f5fb0774e19c78ea50cf9b7e8b95c0.zip
notYetAnotherWiki-212a54b8c2f5fb0774e19c78ea50cf9b7e8b95c0.tar.gz
notYetAnotherWiki-212a54b8c2f5fb0774e19c78ea50cf9b7e8b95c0.tar.bz2
notYetAnotherWiki-212a54b8c2f5fb0774e19c78ea50cf9b7e8b95c0.tar.xz
Create Foswiki subdirectories.
-rwxr-xr-xSuckItFos2
1 files changed, 2 insertions, 0 deletions
diff --git a/SuckItFos b/SuckItFos
index d688c95..f9d9b6c 100755
--- a/SuckItFos
+++ b/SuckItFos
@@ -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