view lab2/compile @ 1:b5139af1a420 tip basis

Fixed permissions on compile scripts
author Mike Spivey <>
date Fri, 13 Oct 2017 17:27:58 +0100
parents bfdcc3820b32
line wrap: on
line source

# This hacked up version works, at least on Linux, even for people who
# have spaces in the names of directories.  Sheesh.

KEIKO=`cd ../keiko; pwd`

set -x

./ppc $* >a.k \
    && "$KEIKO/pplink" -nostdlib -i "/usr/bin/env $KEIKO/ppx" \
        "$KEIKO/lib.k" a.k -o a.out >/dev/null \
    && chmod +x a.out