aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2016-03-12 17:47:19 -0600
committerRob Landley <rob@landley.net>2016-03-12 17:47:19 -0600
commit6d364fce2aebabc3fb4da2955ac499162699841b (patch)
tree1ab54be8107f686c6820c1f195b2608f75f392f3 /scripts
parent2f7c98e109b04b060649f37d5f0be67e2bd2228b (diff)
downloadtoybox-6d364fce2aebabc3fb4da2955ac499162699841b.tar.gz
Update scripts/single.sh and cp.c so "make mv" isn't actually building cp.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/single.sh4
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/" \