3 grep 'extrn ' StarCraft.asm | awk '{print $2}' | awk -F: '{print $1}' > implist
7 cat implist | while read i; do
11 si=`echo $i | cut -c 7-`
18 grep "\<_$si\>" /usr/i586-mingw32msvc/lib/lib* | awk '{print $3}' | \
20 sym=`i586-mingw32msvc-nm $f | grep "\<_$si\>" | grep ' T ' | awk '{print $3}'`
21 if test -n "$sym"; then
27 if test -z "$sym"; then
28 echo "no file/sym for $i, lf $f"
32 echo ".globl $i" >> tramp.s
34 echo " jmp $sym" >> tramp.s