chiark / gitweb /
big-bundle example: Comment out the scraper bits in tomls
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Mon, 17 May 2021 16:21:13 +0000 (17:21 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Mon, 17 May 2021 16:21:13 +0000 (17:21 +0100)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Makefile

index 4c37ba8d99f230a2775837afce066a4f231e4a41..779cc67208c80e0f27ca790dc9c69c8290bc6533 100644 (file)
--- 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