Commit | Line | Data |
---|---|---|
368deb23 | 1 | #!/bin/sh |
2 | set -e | |
3 | ||
4 | echo -n > $3 | |
5 | ||
6 | cat $1 | \ | |
7 | while read a; do | |
8 | a_no_at=`echo $a | awk -F@ '{printf $1}'` | |
232aca37 | 9 | #echo "$a_no_at equ _$a" >> $3 |
10 | #echo "EXTRN _$a:PROC" >> $3 | |
11 | echo "EXTRN $a:PROC" >> $3 | |
368deb23 | 12 | done |
13 | ||
14 | echo "; '_' funcs" >> $3 | |
15 | ||
16 | cat $2 | \ | |
17 | while read a; do | |
0c5547d1 | 18 | case $a in |
19 | \#*) | |
20 | continue | |
21 | ;; | |
22 | \;*) | |
23 | continue | |
24 | ;; | |
25 | "") | |
26 | continue | |
27 | ;; | |
28 | *) | |
29 | ;; | |
30 | esac | |
31 | ||
368deb23 | 32 | echo "EXTRN $a:PROC" >> $3 |
33 | done |