#!/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