X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ian/git?p=subdirmk.git;a=blobdiff_plain;f=tests%2Ffilter%2Fcheck;h=5ba1a231a56dbc7bcec056a1b5a91cfb8387e34c;hp=35db4ed22c374de10ffcd1631265c40b5b8d7b67;hb=fe03524bcce0892ff40ddda3650aa512314ababe;hpb=7cb83215bac621d9585023742911555964857890 diff --git a/tests/filter/check b/tests/filter/check index 35db4ed..5ba1a23 100755 --- a/tests/filter/check +++ b/tests/filter/check @@ -9,7 +9,9 @@ expand <../../README | ./extract-doctest . >/dev/null ../../generate sub/dir files=$(find -name \*.expected) for f in $files; do - sed <$f >$f.tmp ' + i=$f + o=$f.tmp + sed <$i >$o ' /^# doctests:/ { r '"${f%/*}/doctest.mk.part"' a