blob: 8178d24cc9a9cd6081afe40ae44f6e7f87b0a647 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#!/bin/sh
if [ $# != 1 ]; then
echo 'usage: 9a file.s' 1>&2
exit 1
fi
aflags=""
case "`uname`" in
Darwin)
aflags="-arch i386"
esac
out=`echo $1 | sed 's/\.s$//;s/$/.o/'`
exec as $aflags -o $out $1
|