diff options
Diffstat (limited to 'scripts/single.sh')
-rwxr-xr-x | scripts/single.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/single.sh b/scripts/single.sh index 522a7134..e3c9ebbd 100755 --- a/scripts/single.sh +++ b/scripts/single.sh @@ -27,10 +27,10 @@ do exit 1 fi - DEPENDS="$(sed -n 's/^[ \t]*depends on //;T;s/[!][A-Z0-9_]*//g;s/ *&& */|/g;p' $TOYFILE | grep -v SMACK | xargs | tr ' ' '|')" + # Enable stuff this command depends on + DEPENDS="$(sed -n "/^config *$i"'$/,/^$/{s/^[ \t]*depends on //;T;s/[!][A-Z0-9_]*//g;s/ *&& */|/g;p}' $TOYFILE | xargs | tr ' ' '|')" NAME=$(echo $i | tr a-z- A-Z_) - make allnoconfig > /dev/null && sed -ri -e '/CONFIG_TOYBOX/d' \ -e "s/# (CONFIG_($NAME|${NAME}_.*${DEPENDS:+|$DEPENDS})) is not set/\1=y/" \ |