blob: 8c458644409d98b4b8083f6f087456469389db86 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
#!/bin/sh -
FILES="$*"
[ "$FILES" = "" ] && FILES="lib/*.a"
for i in $FILES
do
ID="`dd bs=8 count=1 < $i 2>/dev/null | cat -v`"
[ "$ID" != "!<arch>" ] && {
make ld86r || exit $?
echo Translating archive $i
rm -rf libconv.d
mkdir libconv.d
cd libconv.d
ar x ../$i
cd ..
bin/ld86r -o $i libconv.d/* || exit $?
rm -rf libconv.d
}
done
exit 0
|