From d69d29880bdbe0764870d146a91873f697305a54 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Sat, 12 Dec 2020 23:37:05 -0500 Subject: build: Support and-lists of script configs --- (limited to 'build') diff --git a/build b/build index e1b11ad..7e95002 100755 --- a/build +++ b/build @@ -6,7 +6,21 @@ config_enabled = \ config_enabled() \ { \ [ "x$${1}" = 'x-' ] && return 0; \ - grep "^CONFIG_$${1}=y$$" /dev/null 2>&1; \ + enabled=false; \ + IFS='& '; \ + for cfg in $$(printf '%s' "$${1}"); do \ + unset IFS; \ + [ x"$${cfg}" = x'' ] && continue; \ + if [ x"$${cfg#!}" = x"$${cfg}" ]; then \ + grep -q "^CONFIG_$${cfg}=y$$"