notaz.gp2x.de
/
ia32rtools.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
a3d085f5d3fd206a7da4acd08eff69be0645523a
[ia32rtools.git]
/
run_mkpubinc.sh
1
#!/bin/sh
2
3
echo -n > public.inc
4
5
cat StarCraft.asm | fromdos | sed -e \
6
'1,/^_rdata.*segment/d;/^_data_last/q;/^[[:blank:];]/d;/^;/d;/^_r\?data\>/d;' | awk '{print $1}' | \
7
while read a; do
8
test -z "$a" && continue
9
case $a in
10
__IMPORT_DESCRIPTOR*)
11
continue
12
;;
13
*)
14
;;
15
esac
16
17
echo "PUBLIC $a" >> public.inc
18
done