mirror of
git://c9x.me/qbe.git
synced 2026-04-05 09:59:47 +00:00
13 lines
166 B
Bash
Executable File
13 lines
166 B
Bash
Executable File
#!/bin/sh
|
|
|
|
TMP=/tmp/minic.s
|
|
SRC=$1
|
|
|
|
if [ -z "$SRC" ]; then
|
|
echo "usage: ./mcc file.c" 1>&2
|
|
exit 1
|
|
fi
|
|
|
|
./minic < $SRC | ../lisc/lisc - > $TMP
|
|
[ -s $TMP ] && cc $TMP
|