#!@SHELL@ BIN_DIR=@BINDIR@ SML=$BIN_DIR/sml LINK=$BIN_DIR/.link-sml thisscript=$0 xx=$$ smlfile=$xx-export.sml cmfile=$xx-export.cm listfile=$xx-BOOTLIST mlscript=$xx-script trap 'rm -rf `find . -name $smlfile` $cmfile $listfile $mlscript' 0 1 2 3 15 usage() { echo ${thisscript}: $* echo Usage: $thisscript root-group main-function heapfile exit 1 } if [ $# != 3 ] ; then usage wrong number of arguments fi root=$1 main=$2 heap=$3 rare=XYZ_XXX_0123 cat >$smlfile <$cmfile <$mlscript < OS.Process.failure | SOME l => let val s = TextIO.openOut "${listfile}" fun wr str = TextIO.output (s, str ^ "\n") val n = length l fun maxsz (s, n) = Int.max (size s, n) val m = foldl maxsz 0 l in wr (concat ["%", Int.toString n, " ", Int.toString m]); app wr l; TextIO.closeOut s; OS.Process.success end) handle _ => OS.Process.failure)) EOF if $SML '$smlnj/cm/full.cm' <$mlscript ; then $LINK @SMLboot=$listfile $ else echo Compilation failed. exit 1 fi
Click to toggle
does not end with </html> tag
does not end with </body> tag
The output has ended thus: cm' <$mlscript ; then $LINK @SMLboot=$listfile $ else echo Compilation failed. exit 1 fi