compile0 (268B)
1 #!/bin/bash -e 2 3 src="$1" 4 base="${src%.spl}" 5 out="out/${base}" 6 7 if [ ! -e "${src}" ] ; then echo error: cannot find "${src}" ; exit 1 ; fi 8 9 mkdir -p $(dirname ${out}) 10 out/compiler0 -o ${out} ${src} 11 gcc -g -O0 -Wall -I. -Ibootstrap/inc -Iout -o ${out}.bin ${out}.impl.c