File: _run

package info (click to toggle)
smlnj-runtime 110.44-2
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 2,968 kB
  • ctags: 5,368
  • sloc: ansic: 24,674; asm: 4,195; makefile: 1,353; sh: 91
file content (9 lines) | stat: -rw-r--r-- 319 bytes parent folder | download
1
2
3
4
5
6
7
8
9
#!/bin/sh
app=`basename -- $0`
abspath=`realpath -s $0`
if [ @bindir@/$app = $abspath ]
then exec @rundir@/runtime "@SMLcmdname=$0" "@SMLload=@heapdir@/$app" $@
elif [ @localbindir@/$app = $abspath ]
then exec @rundir@/runtime "@SMLcmdname=$0" "@SMLload=@localheapdir@/$app" $@
else echo "No heap image found: $app"
fi