annotate lab2/compile @ 1:b5139af1a420 tip basis

Fixed permissions on compile scripts
author Mike Spivey <mike@cs.ox.ac.uk>
date Fri, 13 Oct 2017 17:27:58 +0100
parents bfdcc3820b32
children
rev   line source
mike@0 1 #!/bin/sh
mike@0 2
mike@0 3 # This hacked up version works, at least on Linux, even for people who
mike@0 4 # have spaces in the names of directories. Sheesh.
mike@0 5
mike@0 6 KEIKO=`cd ../keiko; pwd`
mike@0 7
mike@0 8 set -x
mike@0 9
mike@0 10 ./ppc $* >a.k \
mike@0 11 && "$KEIKO/pplink" -nostdlib -i "/usr/bin/env $KEIKO/ppx" \
mike@0 12 "$KEIKO/lib.k" a.k -o a.out >/dev/null \
mike@0 13 && chmod +x a.out