1999-10-05 21:54:54 +05:30
|
|
|
#!/bin/sh
|
|
|
|
#Make busybox links list file
|
|
|
|
|
|
|
|
DF="busybox.def.h"
|
1999-10-07 01:55:32 +05:30
|
|
|
MF="busybox.c"
|
1999-10-05 21:54:54 +05:30
|
|
|
|
|
|
|
LIST="$(sed -n '/^#define/{s/^#define //p;}' $DF)"
|
|
|
|
|
1999-10-07 01:55:32 +05:30
|
|
|
for def in ${LIST}; do
|
|
|
|
i=`sed -n 's/^#ifdef '$def'.*\/\/\(.*$\)/\/\1\//gp' $MF`
|
|
|
|
j=`sed -n '/^#ifdef '$def'.*/,/^#endif/{ s/.*\"\(.*\)\".*/\1/gp; }' $MF`
|
|
|
|
for k in $j; do
|
|
|
|
echo $i$k
|
1999-10-05 21:54:54 +05:30
|
|
|
done
|
1999-10-07 01:55:32 +05:30
|
|
|
done
|