cmpmrg_text: detect some refs to rm'd funcs
[ia32rtools.git] / run_mkpubinc.sh
CommitLineData
feb96a61 1#!/bin/sh
8022df01 2set -e
feb96a61 3
368deb23 4echo -n > $3
feb96a61 5
8022df01 6cat $1 | fromdos | sed -e \
feb96a61 7'1,/^_rdata.*segment/d;/^_data_last/q;/^[[:blank:];]/d;/^;/d;/^_r\?data\>/d;' | awk '{print $1}' | \
8while read a; do
9 test -z "$a" && continue
7b64f7cd 10 case $a in
11 __IMPORT_DESCRIPTOR*)
12 continue
13 ;;
14 *)
15 ;;
16 esac
17
368deb23 18 echo "_$a equ $a" >> $3
19 echo "PUBLIC _$a" >> $3
20done
21
22echo "; funcs called from C" >> $3
23
24cat $2 | \
25while read a; do
26 echo "_$a equ $a" >> $3
27 echo "PUBLIC _$a" >> $3
feb96a61 28done