hush/busybox.mkll

16 lines
336 B
Plaintext
Raw Normal View History

1999-10-05 16:24:54 +00:00
#!/bin/sh
# 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`
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