3 grep 'extrn ' StarCraft.asm | awk '{print $2}' | awk -F: '{print $1}' > implist
6 echo ".align 4" >> tramp.s
8 cat implist | while read i; do
12 si=`echo $i | cut -c 7-`
19 grep "\<_$si\>" /usr/i586-mingw32msvc/lib/lib* *.lib | awk '{print $3}' | \
21 sym=`i586-mingw32msvc-nm $f | grep "\<_$si\>" | grep ' T ' | awk '{print $3}'`
22 if test -n "$sym"; then
28 if test -z "$sym"; then
29 echo "no file/sym for $i, lf $f"
33 echo ".globl $i" >> tramp.s
35 echo " .long $sym" >> tramp.s