diff options
author | dvs1 | 2025-01-15 10:47:41 +1000 |
---|---|---|
committer | dvs1 | 2025-01-15 10:47:41 +1000 |
commit | 9e6a1c43f1690e255ceb64946d70e053f1f9d663 (patch) | |
tree | 685f234a48a075de4797bd9dd547d30a59456f04 | |
parent | TODO++ (diff) | |
download | notYetAnotherWiki-9e6a1c43f1690e255ceb64946d70e053f1f9d663.zip notYetAnotherWiki-9e6a1c43f1690e255ceb64946d70e053f1f9d663.tar.gz notYetAnotherWiki-9e6a1c43f1690e255ceb64946d70e053f1f9d663.tar.bz2 notYetAnotherWiki-9e6a1c43f1690e255ceb64946d70e053f1f9d663.tar.xz |
Clean out the beginning and end of Foswiki pages.
-rwxr-xr-x | SuckItFos | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -30,11 +30,11 @@ do | |||
30 | ln -frs Foswiki/${base}/${file}.md combined/${base}/${file}.md | 30 | ln -frs Foswiki/${base}/${file}.md combined/${base}/${file}.md |
31 | cp Foswiki/${base}/${file}.md Foswiki/${base}/${file}.md_ORIGINAL | 31 | cp Foswiki/${base}/${file}.md Foswiki/${base}/${file}.md_ORIGINAL |
32 | 32 | ||
33 | # csplit -ks Foswiki/${base}/${file}.md '%::: foswikiTopic%' '/::: foswikiContentFooter/' | 33 | csplit -ks Foswiki/${base}/${file}.md '%::: {.foswikiTopic}%' '/::: {.foswikiContentFooter}/' |
34 | # if [ -f xx00 ]; then | 34 | if [ -f xx00 ]; then |
35 | # rm Foswiki/${base}/${file}.md | 35 | rm Foswiki/${base}/${file}.md |
36 | # mv xx00 Foswiki/${base}/${file}.md | 36 | mv xx00 Foswiki/${base}/${file}.md |
37 | # fi | 37 | fi |
38 | 38 | ||
39 | # Attempt to clean things up, badly. | 39 | # Attempt to clean things up, badly. |
40 | sed -i -E Foswiki/${base}/${file}.md \ | 40 | sed -i -E Foswiki/${base}/${file}.md \ |