spl

systems programming language
git clone http://frotz.net/git/spl.git
Log | Files | Refs | README | LICENSE

compile1 (206B)


      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 make out/compiler/compiler.bin
     10 
     11 out/compiler/compiler.bin < ${src}