aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/SuckIt
diff options
context:
space:
mode:
authoronefang2026-01-28 12:36:53 +1000
committeronefang2026-01-28 12:36:53 +1000
commit95ee2d6423fe0fcbf0b938a310658be46d0381ad (patch)
tree2686ce27067ae9824c1654b90ebf1fbe10627e89 /SuckIt
parentOOps, forgot this bit. (diff)
downloadnotYetAnotherWiki-95ee2d6423fe0fcbf0b938a310658be46d0381ad.zip
notYetAnotherWiki-95ee2d6423fe0fcbf0b938a310658be46d0381ad.tar.gz
notYetAnotherWiki-95ee2d6423fe0fcbf0b938a310658be46d0381ad.tar.bz2
notYetAnotherWiki-95ee2d6423fe0fcbf0b938a310658be46d0381ad.tar.xz
Basic DocuWiki conversion.
Diffstat (limited to 'SuckIt')
-rwxr-xr-xSuckIt9
1 files changed, 9 insertions, 0 deletions
diff --git a/SuckIt b/SuckIt
index 38fe18e..d56bdc4 100755
--- a/SuckIt
+++ b/SuckIt
@@ -15,6 +15,15 @@ cp -r /opt/nyaw_EMPTY/unsorted .
15mkdir -p users 15mkdir -p users
16cp -r /opt/nyaw_EMPTY/users . 16cp -r /opt/nyaw_EMPTY/users .
17 17
18ogWiki="DocuWiki"
19time find DocuWiki \
20-name "*.txt" -type f,l -printf "%P\n" | while read line
21do
22 base=`echo "${line}" | cut -d '/' -f 1- | rev | cut -d '/' -f 2- | rev`
23 file=`echo "${line}" | rev | cut -d '/' -f 1 | cut -b 5- | rev`
24 pandoc -f dokuwiki -t commonmark_x --self-contained ${ogWiki}/${line} >${ogWiki}/${base}/${file}.md
25done
26
18# Copy across things like images that where uploaded. 27# Copy across things like images that where uploaded.
19mkdir -p /opt/nyaw/Foswiki/pub/ 28mkdir -p /opt/nyaw/Foswiki/pub/
20# TODO - Should rsync this instead. 29# TODO - Should rsync this instead.