annotate lab1/compile @ 4:9f5c8e19f204 tip basis

Oops: fix for lab0
author Mike Spivey <mike@cs.ox.ac.uk>
date Mon, 15 Oct 2018 21:58:03 +0100
parents 5dd13b8deb54
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