From 0a06a6e16f66dafa44e38e1ea58a288fb44faf72 Mon Sep 17 00:00:00 2001 From: dvs1 Date: Thu, 2 Jan 2025 11:39:49 +1000 Subject: Create a symlink forest in merged/combined. Crude attempt at actually combining the content pages into one place. --- SuckItPm | 2 ++ 1 file changed, 2 insertions(+) (limited to 'SuckItPm') diff --git a/SuckItPm b/SuckItPm index 6232cdc..26503f5 100755 --- a/SuckItPm +++ b/SuckItPm @@ -16,12 +16,14 @@ do base=`echo "${line}" | cut -d '.' -f 1` file=`echo "${line}" | cut -d '.' -f 2` mkdir -p PmWiki/$base + mkdir -p combined/$base echo "Converting ${URL}/?n=${base}.${file} -> PmWiki/${base}/${file}.md" # pandoc -f html -t markdown --self-contained ${URL}/?n=${base}.${file} >PmWiki/${base}/${file}.md # TODO - try curl, to see what is actually downloaded, and maybe not download unchanged pages. curl to .HTM # 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. curl --no-progress-meter ${URL}/?n=${base}.${file} -o PmWiki/${base}/${file}.HTM pandoc -f html -t commonmark_x --self-contained PmWiki//${base}/${file}.HTM >PmWiki/${base}/${file}.md + ln -frs PmWiki/${base}/${file}.md combined/${base}/${file}.md cp PmWiki/${base}/${file}.md PmWiki/${base}/${file}.md_ORIGINAL # csplit -ks PmWiki/${base}/${file}.md '/trailstart/' '/trailend/' -- cgit v1.1