Commit | Line | Data |
---|---|---|
feb96a61 | 1 | #!/bin/sh |
8022df01 | 2 | set -e |
feb96a61 | 3 | |
8022df01 | 4 | echo -n > $2 |
feb96a61 | 5 | |
8022df01 | 6 | cat $1 | fromdos | sed -e \ |
feb96a61 | 7 | '1,/^_rdata.*segment/d;/^_data_last/q;/^[[:blank:];]/d;/^;/d;/^_r\?data\>/d;' | awk '{print $1}' | \ |
8 | while read a; do | |
9 | test -z "$a" && continue | |
7b64f7cd | 10 | case $a in |
11 | __IMPORT_DESCRIPTOR*) | |
12 | continue | |
13 | ;; | |
14 | *) | |
15 | ;; | |
16 | esac | |
17 | ||
8022df01 | 18 | echo "PUBLIC $a" >> $2 |
feb96a61 | 19 | done |