1999-10-05 16:24:54 +00:00
|
|
|
#!/bin/sh
|
2000-02-07 05:29:42 +00:00
|
|
|
# Make busybox links list file.
|
1999-10-05 16:24:54 +00:00
|
|
|
|
|
|
|
DF="busybox.def.h"
|
1999-10-06 20:25:32 +00:00
|
|
|
MF="busybox.c"
|
1999-10-05 16:24:54 +00:00
|
|
|
|
|
|
|
LIST="$(sed -n '/^#define/{s/^#define //p;}' $DF)"
|
|
|
|
|
1999-10-06 20:25:32 +00:00
|
|
|
for def in ${LIST}; do
|
1999-10-20 22:08:37 +00:00
|
|
|
i=`sed -n 's/^#ifdef \<'$def'\>.*\/\/\(.*$\)/\/\1\//gp' $MF`
|
2000-01-22 04:55:32 +00:00
|
|
|
j=`sed -n '/^#ifdef \<'$def'\>.*/,/^#endif/{ s/.*\"\(.*\)\".*/\1/gp; }' $MF`
|
1999-10-06 20:25:32 +00:00
|
|
|
for k in $j; do
|
|
|
|
echo $i$k
|
1999-10-05 16:24:54 +00:00
|
|
|
done
|
1999-10-06 20:25:32 +00:00
|
|
|
done
|