summary refs log tree commit diff
path: root/minic/mcc
blob: 523c7f5836202b3ef35db4f1fa9563e8a5f468b6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh

SRC=$1

if [ -z "$SRC" ]; then
	echo "usage: ./mcc file.c" 1>&2
	exit 1
fi

rm -f /tmp/minic.s
./minic < $SRC | ../lisc/lisc - > /tmp/minic.s
[ -f /tmp/minic.s ] && cc /tmp/minic.s