plan9port/bin/9a

10 lines
132 B
Text
Raw Normal View History

#!/bin/sh
if [ $# != 1 ]; then
echo 'usage: 9a file.s' 1>&2
exit 1
fi
out=`echo $1 | sed 's/\.s$//;s/$/.o/'`
exec as -o $out $1