chiark / gitweb /
Makefile: Small refactoring to support more seddery
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 22 May 2021 19:48:46 +0000 (20:48 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 22 May 2021 20:29:56 +0000 (21:29 +0100)
Don't use next if ...; instead, put our work in a conditional block.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Makefile

index c662071cd897ff07b02cf7c0d598fa963f3e886c..7428dc503ea9d55369d7623250b01e71c2462aa1 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -346,7 +346,7 @@ examples/big-bundle/otter.toml: $(LIBRARY_FILES) $(MAKEFILE_DEP)
                mkdir examples/big-bundle/$$l; \
                perl -p \
  -e 'BEGIN { print "# -- AUTOGENERATED FROM COPY IN OTTER SOURCE --\n" }' \
- -e 'next unless m/^\[scraper]/..0; next if m/^\[(?!scraper)/..0; s/^/\#/' \
+ -e 'if (m/^\[scraper]/..0) { unless (m/^\[(?!scraper)/..0) { s/^/\#/ } }' \
                        <$$l.toml >examples/big-bundle/$$l.toml; done
        @set -e; echo 'LN for $@'; \
        for e in $(LIBRARY_FILE_INPUTS); do \