notaz.gp2x.de
/
ia32rtools.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
cmpmrg_text: detect some refs to rm'd funcs
[ia32rtools.git]
/
run_mkimpinc.sh
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}'`
9
echo "$a_no_at equ _$a" >> $3
10
echo "EXTRN _$a:PROC" >> $3
11
done
12
13
echo "; '_' funcs" >> $3
14
15
cat $2 | \
16
while read a; do
17
case $a in
18
\#*)
19
continue
20
;;
21
\;*)
22
continue
23
;;
24
"")
25
continue
26
;;
27
*)
28
;;
29
esac
30
31
echo "EXTRN $a:PROC" >> $3
32
done