+@template FRONTAL_NewFrontalScript(%InterpretorFile, %CCLFile, %CoreFile) is
+$#!/bin/csh -f
+$## this is a template file for Frontal Building
+$## lines added by umake :
+$#
+$set CCL_INTERPRETOR=%InterpretorFile
+$set CCL_FILE=%CCLFile
+$setenv CCL_BIN %CoreFile
+$#
+$setenv CSF_VERBOSE 0
+$set CCL_DEBUGGER="exec"
+$set LOGFILE=0
+$#
+$set i = 1
+$while ($i <= $#argv)
+$ set c = $argv[$i]
+$ set i = `expr $i + 1`
+$ if (`expr $c = -h`) then
+$ echo "-f <file>"
+$ echo "-v : set verbose mode"
+$ echo "-w : print stack on error"
+$ echo "-d : start a debug session on error"
+$ echo "-record <file> <comment> : record a session"
+$ echo "-play <file> : play a record session"
+$ echo "-reference <dir> : set reference directory for record session"
+$ echo "-result <dir> : set result directory for record session"
+$ echo "-trace : outputs shareable images loading and diagnostics"
+$ echo "-debug : start CCL with debug"
+$ echo "-log <file> : outputs in file"
+$ exit(0)
+$ endif
+$ if (`expr $c = -f`) then
+$ setenv CCL_FILE $argv[$i]
+$ set i = `expr $i + 1`
+$ endif
+$ if (`expr $c = -showcode`) then
+$ setenv CCL_CODE 1
+$ endif
+$ if (`expr $c = -v`) then
+$ setenv CCL_VERBOSE 1
+$ endif
+$ if (`expr $c = -w`) then
+$ setenv CCL_WHERE 1
+$ endif
+$ if (`expr $c = -d`) then
+$ setenv CCL_DEBUG 1
+$ endif
+$ if (`expr $c = -util`) then
+$ setenv CCL_UTIL 1
+$ endif
+$ if (`expr $c = -trace`) then
+$ setenv CSF_VERBOSE 1
+$ endif
+$ if (`expr $c = -record`) then
+$ setenv TR_Status record
+$ setenv TR_File $argv[$i]
+$ set i = `expr $i + 1`
+$ setenv TR_Comment $argv[$i]
+$ set i = `expr $i + 1`
+$ endif
+$ if (`expr $c = -play`) then
+$ setenv TR_Status play
+$ setenv TR_File $argv[$i]
+$ set i = `expr $i + 1`
+$ endif
+$ if (`expr $c = -reference`) then
+$ setenv TR_RefDir $argv[$i]
+$ set i = `expr $i + 1`
+$ endif
+$ if (`expr $c = -result`) then
+$ setenv TR_ResDir $argv[$i]
+$ set i = `expr $i + 1`
+$ endif
+$ if (`expr $c = -log`) then
+$ set LOGFILE=$argv[$i]
+$ set i = `expr $i + 1`
+$ endif
+$ if (`expr $c = -debug`) then
+$ set CCL_DEBUGGER="dbx"
+$ if (`expr $STATION = ao1` ) then
+$ set CCL_DEBUGGER="decladebug"
+$ endif
+$ if (`expr $STATION = sil` ) then
+$ set CCL_DEBUGGER="cvd"
+$ setenv TRAP_FPE "UNDERFL=FLUSH_ZERO;OVERFL=DEFAULT;DIVZERO=DEFAULT;INT_OVERFL=DEFAULT"
+$ endif
+$ if (`expr $STATION = hp` ) then
+$ set CCL_DEBUGGER="dde"
+$ endif
+$ echo "$CCL_FILE -call session-make-bin"
+$ endif
+$end
+$if (`expr $CCL_DEBUGGER = exec` ) then
+$ if (`expr $LOGFILE = 0` ) then
+$ exec $CCL_INTERPRETOR $CCL_FILE -call session-make-bin
+$ else
+$ exec $CCL_INTERPRETOR $CCL_FILE -call session-make-bin > $LOGFILE
+$ endif
+$else
+$ $CCL_DEBUGGER $CCL_INTERPRETOR
+$endif
+$
+@end;
+
+
+
@template FRONTAL_FrontalScript(%LeLispFile, %CoreFile) is
$#!/bin/csh -f
$## this is a template file for Frontal Building
@end;
+
@if (%Station == "wnt") then
@template FRONTAL_CCLScript(%CCLFile,%MsgFile,%MsgCmpFile) is
$endif
@end;
+@template FRONTAL_BINScript(%BINFile,%MsgFile,%MsgCmpFile) is
+$#!/bin/csh -f
+$## this is a template file for Frontal Building
+$## lines built by umake :
+$#
+$setenv CSF_VERBOSE 0
+$set CCL_DEBUGGER="exec"
+$set LOGFILE=0
+$set BIN_FILE=%BINFile
+$
+$set i = 1
+$set opts = ""
+$while ($i <= $#argv)
+$ set c = $argv[$i]
+$ set i = `expr $i + 1`
+$ set treated = 0
+$ if (`expr $c = -h`) then
+$ echo "-play <file> : play a record session"
+$ echo "-record <file> <comment> : record a session"
+$ echo "-reference <dir> : set reference directory for record session"
+$ echo "-result <dir> : set result directory for record session"
+$ echo "-f <file> : load a file"
+$ echo "-v : set verbose mode"
+$ echo "-w : print stack on error"
+$ echo "-d : start a debug session on error"
+$ echo "-spy : trace macros, commands and all engine requests"
+$ echo "-call <macro> : call the macro (start is default)"
+$ echo "-trace : outputs shareable images loading and diagnostics"
+$ echo "-log <file> : outputs in a file"
+$ echo "-debug : start CCL with debugger"
+$ echo "<f1> ... <fn> : load these files"
+$ exit(0)
+$ endif
+$ if (`expr $c = -record`) then
+$ setenv TR_Status record
+$ setenv TR_File $argv[$i]
+$ set i = `expr $i + 1`
+$ setenv TR_Comment $argv[$i]
+$ set i = `expr $i + 1`
+$ set treated = 1
+$ endif
+$ if (`expr $c = -play`) then
+$ setenv TR_Status play
+$ setenv TR_File $argv[$i]
+$ set i = `expr $i + 1`
+$ set treated = 1
+$ endif
+$ if (`expr $c = -reference`) then
+$ setenv TR_RefDir $argv[$i]
+$ set i = `expr $i + 1`
+$ set treated = 1
+$ endif
+$ if (`expr $c = -result`) then
+$ setenv TR_ResDir $argv[$i]
+$ set i = `expr $i + 1`
+$ set treated = 1
+$ endif
+$ if (`expr $c = -f`) then
+$ set treated = 1
+$ endif
+$ if (`expr $c = -trace`) then
+$ setenv CSF_VERBOSE 1
+$ set treated = 1
+$ endif
+$ if (`expr $c = -log`) then
+$ set LOGFILE=$argv[$i]
+$ set i = `expr $i + 1`
+$ set treated = 1
+$ endif
+$ if (`expr $c = -debug`) then
+$ set treated = 1
+$ set CCL_DEBUGGER="dbx"
+$ if (`expr $STATION = ao1`) then
+$ set CCL_DEBUGGER="decladebug"
+$ endif
+$ if (`expr $STATION = sil`) then
+$ set CCL_DEBUGGER="cvd"
+$ setenv TRAP_FPE "UNDERFL=FLUSH_ZERO;OVERFL=DEFAULT;DIVZERO=DEFAULT;INT_OVERFL=DEFAULT"
+$ endif
+$ if (`expr $STATION = hp`) then
+$ set CCL_DEBUGGER="dde"
+$ endif
+$ endif
+$ if ($treated == 0) then
+$ set opts = "$opts $c"
+$ endif
+$end
+$
+$if ( ! $?CSF_MESSAGE ) then
+$ if (-x %MsgCmpFile) then
+$ setenv CSF_MESSAGE %MsgCmpFile
+$ else
+$ setenv CSF_MESSAGE %MsgFile
+$ endif
+$endif
+$
+$if (`expr $CCL_DEBUGGER = exec`) then
+$ if (`expr $LOGFILE = 0`) then
+$ CCLinterpretor -session $BIN_FILE $opts -call start
+$ else
+$ CCLinterpretor -session $BIN_FILE $opts -call start >$LOGFILE
+$ endif
+$else
+$ echo " -session $BIN_FILE $opts -call start"
+$ $CCL_DEBUGGER `which CCLinterpretor`
+$endif
+@end;
+
@endif;