aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/SuckItFos
diff options
context:
space:
mode:
Diffstat (limited to 'SuckItFos')
-rwxr-xr-xSuckItFos9
1 files changed, 0 insertions, 9 deletions
diff --git a/SuckItFos b/SuckItFos
index 11adaf9..1e6e48d 100755
--- a/SuckItFos
+++ b/SuckItFos
@@ -22,8 +22,6 @@ 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# pandoc -f html -t markdown --self-contained ${URL}/${base}/${file} >Foswiki/${base}/${file}.md
26 # TODO - try curl, to see what is actually downloaded, and maybe not download unchanged pages. curl to .HTM
27 # 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. 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.
28 curl --silent --no-progress-meter ${URL}/${base}/${file}?cover=print -o Foswiki/${base}/${file}.HTM 26 curl --silent --no-progress-meter ${URL}/${base}/${file}?cover=print -o Foswiki/${base}/${file}.HTM
29 cp Foswiki/${base}/${file}.HTM Foswiki/${base}/${file}.HTM_ORIGINAL 27 cp Foswiki/${base}/${file}.HTM Foswiki/${base}/${file}.HTM_ORIGINAL
@@ -40,13 +38,10 @@ do
40 -e 's/class="foswikiTopic"/class="FoswikiTopic"/g' \ 38 -e 's/class="foswikiTopic"/class="FoswikiTopic"/g' \
41 -e 's/class="foswiki[[:alpha:]]*"//g' \ 39 -e 's/class="foswiki[[:alpha:]]*"//g' \
42 -e "s/style='.*;'//g" 40 -e "s/style='.*;'//g"
43# -e "s/style='background-color: #.*;'//g" \
44# -e "s/style='font-size: .*;'//g"
45 41
46 pandoc -f html -t commonmark_x --self-contained Foswiki//${base}/${file}.HTM >Foswiki/${base}/${file}.md 42 pandoc -f html -t commonmark_x --self-contained Foswiki//${base}/${file}.HTM >Foswiki/${base}/${file}.md
47 cp Foswiki/${base}/${file}.md Foswiki/${base}/${file}.md_ORIGINAL 43 cp Foswiki/${base}/${file}.md Foswiki/${base}/${file}.md_ORIGINAL
48 44
49# csplit -ks Foswiki/${base}/${file}.md '%::: {.foswikiTopic}%' '/::: {.foswikiContentFooter}/'
50 csplit -ks Foswiki/${base}/${file}.md '%::: {.FoswikiTopic}%' '/::: {.patternInfo}/' 45 csplit -ks Foswiki/${base}/${file}.md '%::: {.FoswikiTopic}%' '/::: {.patternInfo}/'
51 if [ -f xx00 ]; then 46 if [ -f xx00 ]; then
52 rm Foswiki/${base}/${file}.md 47 rm Foswiki/${base}/${file}.md
@@ -63,10 +58,6 @@ do
63# -e 's/\{\.pattern.*//g' \ 58# -e 's/\{\.pattern.*//g' \
64 59
65 echo -e "****\n[Original page](${URL}/${base}/${file}) where maybe you can edit it." >> Foswiki/${base}/${file}.md 60 echo -e "****\n[Original page](${URL}/${base}/${file}) where maybe you can edit it." >> Foswiki/${base}/${file}.md
66
67# pandoc -t html -f commonmark_x --self-contained Foswiki/${base}/${file}.md > Foswiki/${base}/${file}.htm
68# cmark-gfm -t html -e footnotes -e table -e strikethrough Foswiki/${base}/${file}.md > Foswiki/${base}/${file}.body
69# ln -frs Foswiki/${base}/${file}.body combined/${base}/${file}.body
70 ln -frs Foswiki/${base}/${file}.md combined/${base}/${file}.md 61 ln -frs Foswiki/${base}/${file}.md combined/${base}/${file}.md
71 62
72 if [ -f xx01 ]; then 63 if [ -f xx01 ]; then