| 1 |
#!/bin/sh |
| 2 |
# |
| 3 |
# Wrapper for dragon heap image |
| 4 |
# |
| 5 |
|
| 6 |
case `uname -s` in |
| 7 |
Darwin) heap=ct.ppc-darwin ;; |
| 8 |
*) heap=ct.x86-linux ;; |
| 9 |
esac |
| 10 |
|
| 11 |
if test ! -r $heap ; then |
| 12 |
echo "ct: no heap image!" |
| 13 |
exit 1 |
| 14 |
fi |
| 15 |
|
| 16 |
exec sml @SMLload=$heap $@ |