From: Ian Jackson Date: Sat, 22 May 2021 19:48:46 +0000 (+0100) Subject: Makefile: Small refactoring to support more seddery X-Git-Tag: otter-0.6.0~66 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=c1ecbe81f77a785db02e99833a197776c4c937ea;p=otter.git Makefile: Small refactoring to support more seddery Don't use next if ...; instead, put our work in a conditional block. Signed-off-by: Ian Jackson --- diff --git a/Makefile b/Makefile index c662071c..7428dc50 100644 --- 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 \