annotate lab3/compile @ 0:bfdcc3820b32

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