From 5a671268340c107ee94f8244f01b6cb8ee9decd0 Mon Sep 17 00:00:00 2001 From: dvs1 Date: Sat, 25 Jan 2025 03:14:10 +1000 Subject: YAR see description for details. New everything page, lists all the pages and where they came from, with links. Now we know where the page came from, type and URL. Rejigged how metadata works. Do our own metadata substitution. Fixed up a bunch of bugs. General cleanups. --- SuckItFos | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'SuckItFos') diff --git a/SuckItFos b/SuckItFos index 1e6e48d..0f6f8a8 100755 --- a/SuckItFos +++ b/SuckItFos @@ -22,6 +22,7 @@ do mkdir -p combined/$base mkdir -p combined/${base}/`dirname ${file}` echo "Converting ${URL}/${base}/${file}?cover=print -> Foswiki/${base}/${file}.md" + echo -e "ogWiki=Foswiki\nogURL=${URL}/${base}/${file}\n" > Foswiki/${base}/${file}.md.md # 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 --silent --no-progress-meter ${URL}/${base}/${file}?cover=print -o Foswiki/${base}/${file}.HTM cp Foswiki/${base}/${file}.HTM Foswiki/${base}/${file}.HTM_ORIGINAL @@ -47,6 +48,9 @@ do rm Foswiki/${base}/${file}.md mv xx00 Foswiki/${base}/${file}.md fi + if [ -f xx01 ]; then + rm xx01 + fi # Attempt to clean things up, badly. sed -i -E Foswiki/${base}/${file}.md \ @@ -57,12 +61,7 @@ do # -e 's/\{\.pattern.*\}//g' \ # -e 's/\{\.pattern.*//g' \ - echo -e "****\n[Original page](${URL}/${base}/${file}) where maybe you can edit it." >> Foswiki/${base}/${file}.md ln -frs Foswiki/${base}/${file}.md combined/${base}/${file}.md - - if [ -f xx01 ]; then - rm xx01 - fi done popd -- cgit v1.1