hush/applets/busybox.mkll

16 lines
326 B
Plaintext
Raw Normal View History

1999-10-05 16:24:54 +00:00
#!/bin/sh
#Make busybox links list file
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
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 16:24:54 +00:00
done
1999-10-06 20:25:32 +00:00
done