aboutsummaryrefslogtreecommitdiff
path: root/applets/busybox.mkll
diff options
context:
space:
mode:
Diffstat (limited to 'applets/busybox.mkll')
-rwxr-xr-xapplets/busybox.mkll16
1 files changed, 10 insertions, 6 deletions
diff --git a/applets/busybox.mkll b/applets/busybox.mkll
index c4420f50d..fa1bff209 100755
--- a/applets/busybox.mkll
+++ b/applets/busybox.mkll
@@ -4,12 +4,16 @@
4DF="busybox.def.h" 4DF="busybox.def.h"
5MF="busybox.c" 5MF="busybox.c"
6 6
7LIST="$(sed -n '/^#define/{s/^#define //p;}' $DF)" 7LIST="$(sed -n '/^#define/{s/^#define BB_FEATURE_.*//g;s/^#define //p;}' $DF)"
8 8
9for def in ${LIST}; do 9for def in ${LIST}; do
10 i=`sed -n 's/^#ifdef \<'$def'\>.*\/\/\(.*$\)/\/\1\//gp' $MF` 10 i=`sed -n '/^#ifdef \<'$def'\>.*/,/^#endif/{ s/.*\"\(.*\)\".*\(_BB_DIR_[A-Z_]*\).*$/\2\/\1/gp; }' $MF`
11 j=`sed -n '/^#ifdef \<'$def'\>.*/,/^#endif/{ s/.*\"\(.*\)\".*/\1/gp; }' $MF` 11 for j in $i; do
12 for k in $j; do 12 if [ -z $j ] ; then
13 echo $i$k 13 continue;
14 done 14 fi;
15 echo $j | sed -e 's/_BB_DIR_ROOT//g;s/_BB_DIR_BIN/\/bin/g;' \
16 -e 's/_BB_DIR_SBIN/\/sbin/g;s/_BB_DIR_USR_BIN/\/usr\/bin/g;' \
17 -e 's/_BB_DIR_USR_SBIN/\/usr\/sbin/g;'
18 done;
15done 19done