aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/SuckItPm
diff options
context:
space:
mode:
authordvs12025-01-02 11:39:49 +1000
committerdvs12025-01-02 11:39:49 +1000
commit0a06a6e16f66dafa44e38e1ea58a288fb44faf72 (patch)
tree109a15139ca968eb69f96ea6eb32ed01f003a8ff /SuckItPm
parentTODO-- (diff)
downloadnotYetAnotherWiki-0a06a6e16f66dafa44e38e1ea58a288fb44faf72.zip
notYetAnotherWiki-0a06a6e16f66dafa44e38e1ea58a288fb44faf72.tar.gz
notYetAnotherWiki-0a06a6e16f66dafa44e38e1ea58a288fb44faf72.tar.bz2
notYetAnotherWiki-0a06a6e16f66dafa44e38e1ea58a288fb44faf72.tar.xz
Create a symlink forest in merged/combined.
Crude attempt at actually combining the content pages into one place.
Diffstat (limited to 'SuckItPm')
-rwxr-xr-xSuckItPm2
1 files changed, 2 insertions, 0 deletions
diff --git a/SuckItPm b/SuckItPm
index 6232cdc..26503f5 100755
--- a/SuckItPm
+++ b/SuckItPm
@@ -16,12 +16,14 @@ do
16 base=`echo "${line}" | cut -d '.' -f 1` 16 base=`echo "${line}" | cut -d '.' -f 1`
17 file=`echo "${line}" | cut -d '.' -f 2` 17 file=`echo "${line}" | cut -d '.' -f 2`
18 mkdir -p PmWiki/$base 18 mkdir -p PmWiki/$base
19 mkdir -p combined/$base
19 echo "Converting ${URL}/?n=${base}.${file} -> PmWiki/${base}/${file}.md" 20 echo "Converting ${URL}/?n=${base}.${file} -> PmWiki/${base}/${file}.md"
20# pandoc -f html -t markdown --self-contained ${URL}/?n=${base}.${file} >PmWiki/${base}/${file}.md 21# pandoc -f html -t markdown --self-contained ${URL}/?n=${base}.${file} >PmWiki/${base}/${file}.md
21 # TODO - try curl, to see what is actually downloaded, and maybe not download unchanged pages. curl to .HTM 22 # TODO - try curl, to see what is actually downloaded, and maybe not download unchanged pages. curl to .HTM
22 # Doesn't help with redownloads, coz natch a dynamic site isn't cached. But I can at least comment out the curl command during testing to save time. 23 # Doesn't help with redownloads, coz natch a dynamic site isn't cached. But I can at least comment out the curl command during testing to save time.
23 curl --no-progress-meter ${URL}/?n=${base}.${file} -o PmWiki/${base}/${file}.HTM 24 curl --no-progress-meter ${URL}/?n=${base}.${file} -o PmWiki/${base}/${file}.HTM
24 pandoc -f html -t commonmark_x --self-contained PmWiki//${base}/${file}.HTM >PmWiki/${base}/${file}.md 25 pandoc -f html -t commonmark_x --self-contained PmWiki//${base}/${file}.HTM >PmWiki/${base}/${file}.md
26 ln -frs PmWiki/${base}/${file}.md combined/${base}/${file}.md
25 cp PmWiki/${base}/${file}.md PmWiki/${base}/${file}.md_ORIGINAL 27 cp PmWiki/${base}/${file}.md PmWiki/${base}/${file}.md_ORIGINAL
26 28
27# csplit -ks PmWiki/${base}/${file}.md '/trailstart/' '/trailend/' 29# csplit -ks PmWiki/${base}/${file}.md '/trailstart/' '/trailend/'