From 9e6a1c43f1690e255ceb64946d70e053f1f9d663 Mon Sep 17 00:00:00 2001 From: dvs1 Date: Wed, 15 Jan 2025 10:47:41 +1000 Subject: Clean out the beginning and end of Foswiki pages. --- SuckItFos | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/SuckItFos b/SuckItFos index f21decc..0f315b0 100755 --- a/SuckItFos +++ b/SuckItFos @@ -30,11 +30,11 @@ do ln -frs Foswiki/${base}/${file}.md combined/${base}/${file}.md cp Foswiki/${base}/${file}.md Foswiki/${base}/${file}.md_ORIGINAL -# csplit -ks Foswiki/${base}/${file}.md '%::: foswikiTopic%' '/::: foswikiContentFooter/' -# if [ -f xx00 ]; then -# rm Foswiki/${base}/${file}.md -# mv xx00 Foswiki/${base}/${file}.md -# fi + csplit -ks Foswiki/${base}/${file}.md '%::: {.foswikiTopic}%' '/::: {.foswikiContentFooter}/' + if [ -f xx00 ]; then + rm Foswiki/${base}/${file}.md + mv xx00 Foswiki/${base}/${file}.md + fi # Attempt to clean things up, badly. sed -i -E Foswiki/${base}/${file}.md \ -- cgit v1.1