From: Ian Jackson Date: Mon, 17 May 2021 16:21:13 +0000 (+0100) Subject: big-bundle example: Comment out the scraper bits in tomls X-Git-Tag: otter-0.6.0~189 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=5972065858b09b8f1f35f75fa73dd6efad3793e9;p=otter.git big-bundle example: Comment out the scraper bits in tomls Signed-off-by: Ian Jackson --- diff --git a/Makefile b/Makefile index 4c37ba8d..779cc672 100644 --- a/Makefile +++ b/Makefile @@ -342,7 +342,10 @@ examples/big-bundle/otter.toml: $(LIBRARY_FILES) $(MAKEFILE_DEP) mkdir examples/big-bundle examples/big-bundle/library set -e; for l in $(LIBRARIES); do \ mkdir examples/big-bundle/$$l; \ - cp -v $$l.toml examples/big-bundle/$$l.toml; done + perl -p \ + -e 'BEGIN { print "# -- AUTOGENERATED FROM COPY IN OTTER SOURCE --\n" }' \ + -e 'next unless m/^\[scraper]/..0; next if m/^\[(?!scraper)/..0; s/^/\#/' \ + <$$l.toml >examples/big-bundle/$$l.toml; done set -e; for e in $(LIBRARY_FILE_INPUTS); do \ ln $${e#*:} examples/big-bundle/$${e%%.usvg:*}.svg; done echo 'title = "Autogenerated large test bundle"' >$@.tmp