aboutsummaryrefslogtreecommitdiff
path: root/make_single_applets.sh
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2016-12-23 16:49:07 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2017-01-01 13:01:04 +0100
commit28251dfa64a999c69605471863a2bb8692bfc7b3 (patch)
tree6bb83c0d295060a1591562f80a6a1dd992786926 /make_single_applets.sh
parent9982d88a61684743f24143d97a634b8e12f56bcb (diff)
downloadbusybox-w32-28251dfa64a999c69605471863a2bb8692bfc7b3.tar.gz
busybox-w32-28251dfa64a999c69605471863a2bb8692bfc7b3.tar.bz2
busybox-w32-28251dfa64a999c69605471863a2bb8692bfc7b3.zip
Make it possible to select "sh" and "bash" aliases without selecting ash or hush
The same can be done for msh, but we are probably better off just deleting it in a next versio or two. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'make_single_applets.sh')
-rwxr-xr-xmake_single_applets.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/make_single_applets.sh b/make_single_applets.sh
index 6473e4ddd..705f9821c 100755
--- a/make_single_applets.sh
+++ b/make_single_applets.sh
@@ -26,6 +26,7 @@ allno="$cfg"
26for app in $apps; do 26for app in $apps; do
27 allno="`echo "$allno" | sed "s/^CONFIG_${app}=y\$/# CONFIG_${app} is not set/"`" 27 allno="`echo "$allno" | sed "s/^CONFIG_${app}=y\$/# CONFIG_${app} is not set/"`"
28done 28done
29#echo "$allno" >.config_allno
29 30
30# Turn on each applet individually and build single-applet executable 31# Turn on each applet individually and build single-applet executable
31fail=0 32fail=0
@@ -37,6 +38,16 @@ for app in $apps; do
37 mv .config .config.SV 38 mv .config .config.SV
38 echo "CONFIG_${app}=y" >.config 39 echo "CONFIG_${app}=y" >.config
39 echo "$allno" | sed "/^# CONFIG_${app} is not set\$/d" >>.config 40 echo "$allno" | sed "/^# CONFIG_${app} is not set\$/d" >>.config
41
42 if test x"${app}" != x"SH_IS_ASH"; then
43 # $allno has all choices for "sh" aliasing at off.
44 # "sh" aliasing defaults to "ash", not none.
45 # without this fix, "make oldconfig" sets it wrong,
46 # resulting in NUM_APPLETS = 2
47 sed '/CONFIG_SH_IS_NONE/d' -i .config
48 echo "CONFIG_SH_IS_NONE=y" >>.config
49 fi
50
40 if ! yes '' | make oldconfig >busybox_make_${app}.log 2>&1; then 51 if ! yes '' | make oldconfig >busybox_make_${app}.log 2>&1; then
41 : $((fail++)) 52 : $((fail++))
42 echo "Config error for ${app}" 53 echo "Config error for ${app}"