aboutsummaryrefslogtreecommitdiff
path: root/busybox.mkll
diff options
context:
space:
mode:
Diffstat (limited to 'busybox.mkll')
-rwxr-xr-xbusybox.mkll16
1 files changed, 7 insertions, 9 deletions
diff --git a/busybox.mkll b/busybox.mkll
index e43a1ccb0..f79462b7f 100755
--- a/busybox.mkll
+++ b/busybox.mkll
@@ -2,16 +2,14 @@
2#Make busybox links list file 2#Make busybox links list file
3 3
4DF="busybox.def.h" 4DF="busybox.def.h"
5MF="main.c" 5MF="busybox.c"
6 6
7LIST="$(sed -n '/^#define/{s/^#define //p;}' $DF)" 7LIST="$(sed -n '/^#define/{s/^#define //p;}' $DF)"
8 8
9 for def in ${LIST}; do 9for def in ${LIST}; do
10 10 i=`sed -n 's/^#ifdef '$def'.*\/\/\(.*$\)/\/\1\//gp' $MF`
11 set -- $(sed -n '/^#ifdef '$def'[ +| +].*/,/^#endif/{s/.*\/\///p; /^{ /{ s/^{ "//; s/",.*$//p;}; }' $MF) 11 j=`sed -n '/^#ifdef '$def'.*/,/^#endif/{ s/.*\"\(.*\)\".*/\1/gp; }' $MF`
12 path=$1; shift 12 for k in $j; do
13 13 echo $i$k
14 for n in $@; do
15 echo "$path/$n"
16 done
17 done 14 done
15done