3 $ wget http://www.thomas.schwinge.homeip.net/tmp/cutpaste_filter.tar.bz2
4 $ wget http://www.thomas.schwinge.homeip.net/tmp/cutpaste_filter.patch
6 $ tar -xj < cutpaste_filter.tar.bz2
9 $ find "$PWD".rendered/ -type f -print0 | xargs -0 grep -H -E 'FOO|BAR'
10 [notice one FOO in there]
11 $ rm -rf .ikiwiki "$PWD".rendered
13 $ cp /usr/share/perl5/IkiWiki/Plugin/cutpaste.pm .library/IkiWiki/Plugin/
14 $ patch -p0 < ../cutpaste_filter.patch
16 $ find "$PWD".rendered/ -type f -print0 | xargs -0 grep -H -E 'FOO|BAR'
17 [correct; notice no more FOO]
19 I guess this needs a general audit -- there are other places where `preprocess`
20 is being doing without `filter`ing first, for example in the same file, `copy`