busybox/applets/busybox.mkll

16 lines
330 B
Plaintext
Raw Normal View History

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
1999-10-21 03:38:37 +05:30
i=`sed -n 's/^#ifdef \<'$def'\>.*\/\/\(.*$\)/\/\1\//gp' $MF`
1999-10-07 01:55:32 +05:30
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