diff options
author | dvs1 | 2025-01-25 03:14:10 +1000 |
---|---|---|
committer | dvs1 | 2025-01-25 03:14:10 +1000 |
commit | 5a671268340c107ee94f8244f01b6cb8ee9decd0 (patch) | |
tree | 6d9dc191d25efb486c46a7b1865ef19cb70df8ca /SuckItFos | |
parent | Replace cmark-gfm and lcmark with luamark. (diff) | |
download | notYetAnotherWiki-5a671268340c107ee94f8244f01b6cb8ee9decd0.zip notYetAnotherWiki-5a671268340c107ee94f8244f01b6cb8ee9decd0.tar.gz notYetAnotherWiki-5a671268340c107ee94f8244f01b6cb8ee9decd0.tar.bz2 notYetAnotherWiki-5a671268340c107ee94f8244f01b6cb8ee9decd0.tar.xz |
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.
Diffstat (limited to 'SuckItFos')
-rwxr-xr-x | SuckItFos | 9 |
1 files changed, 4 insertions, 5 deletions
@@ -22,6 +22,7 @@ do | |||
22 | mkdir -p combined/$base | 22 | mkdir -p combined/$base |
23 | mkdir -p combined/${base}/`dirname ${file}` | 23 | mkdir -p combined/${base}/`dirname ${file}` |
24 | echo "Converting ${URL}/${base}/${file}?cover=print -> Foswiki/${base}/${file}.md" | 24 | echo "Converting ${URL}/${base}/${file}?cover=print -> Foswiki/${base}/${file}.md" |
25 | echo -e "ogWiki=Foswiki\nogURL=${URL}/${base}/${file}\n" > Foswiki/${base}/${file}.md.md | ||
25 | # 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. | 26 | # 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. |
26 | curl --silent --no-progress-meter ${URL}/${base}/${file}?cover=print -o Foswiki/${base}/${file}.HTM | 27 | curl --silent --no-progress-meter ${URL}/${base}/${file}?cover=print -o Foswiki/${base}/${file}.HTM |
27 | cp Foswiki/${base}/${file}.HTM Foswiki/${base}/${file}.HTM_ORIGINAL | 28 | cp Foswiki/${base}/${file}.HTM Foswiki/${base}/${file}.HTM_ORIGINAL |
@@ -47,6 +48,9 @@ do | |||
47 | rm Foswiki/${base}/${file}.md | 48 | rm Foswiki/${base}/${file}.md |
48 | mv xx00 Foswiki/${base}/${file}.md | 49 | mv xx00 Foswiki/${base}/${file}.md |
49 | fi | 50 | fi |
51 | if [ -f xx01 ]; then | ||
52 | rm xx01 | ||
53 | fi | ||
50 | 54 | ||
51 | # Attempt to clean things up, badly. | 55 | # Attempt to clean things up, badly. |
52 | sed -i -E Foswiki/${base}/${file}.md \ | 56 | sed -i -E Foswiki/${base}/${file}.md \ |
@@ -57,12 +61,7 @@ do | |||
57 | # -e 's/\{\.pattern.*\}//g' \ | 61 | # -e 's/\{\.pattern.*\}//g' \ |
58 | # -e 's/\{\.pattern.*//g' \ | 62 | # -e 's/\{\.pattern.*//g' \ |
59 | 63 | ||
60 | echo -e "****\n[Original page](${URL}/${base}/${file}) where maybe you can edit it." >> Foswiki/${base}/${file}.md | ||
61 | ln -frs Foswiki/${base}/${file}.md combined/${base}/${file}.md | 64 | ln -frs Foswiki/${base}/${file}.md combined/${base}/${file}.md |
62 | |||
63 | if [ -f xx01 ]; then | ||
64 | rm xx01 | ||
65 | fi | ||
66 | done | 65 | done |
67 | 66 | ||
68 | popd | 67 | popd |