From c1ecbe81f77a785db02e99833a197776c4c937ea Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sat, 22 May 2021 20:48:46 +0100 Subject: [PATCH] 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 --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 \ -- 2.30.2