if ($?GENESIS_TMP) then
set TMP = $GENESIS_TMP
else if ($?GENESIS_DIR) then
set TMP = $GENESIS_DIR/tmp
else
set TMP = /genesis/tmp
endif
set INFO = $TMP/info
alias DO_INFO ' COM info, out_file = $info,out_file=$INFO,\
write_mode=replace,args=\!:*;source $INFO;rm $INFO'
set CURR_OS = 'uname -s'
if ($CURR_OS == "WINDOWS_NT") then
	alias awk '$GENESIS_DIR/e${GENESIS_VER}/nt/bin/awk95'
endif
if ($CURR_OS == "WINDOWS_NT") then
	set NT_VER = `echo "$version" | awk -F'-' '{if ($7 < 5.0) print 0; else print 1}'`
endif
set source_script = $1
COM ncset_units,units=inch
source $source_script
# Header definition section.
# --------------------------
if ($ncHEADER_PATH != "") then
if ($ncMACHINE == "excellonkfp") then
             echo "M48" >  $ncHEADER_PATH
             #echo "FMAT,2" >> $ncHEADER_PATH

             set i = 1
		while ($i <= $#ncTOOL_NUM) 
			echo "T"${ncTOOL_NUM[$i]}"C"${ncTOOL_SIZE2[$i]} >> $ncHEADER_PATH
			@ i ++
                    endif
		end
             echo "%" >> $ncHEADER_PATH
             endif
             endif
# End of file (EOF) definition section.
# -------------------------------------
if ($ncEOF_PATH != "") then
if ($ncMACHINE == "excellonkfp") then
             echo "M30" >> $ncEOF_PATH
             endif
             endif
# Tool change definition section.
# -------------------------------
set i = 1
if ($ncTOOL_SLOT[$i] == no) then
if ($ncMACHINE == "excellonkfp") then
while ($i <= $#ncTOOL_NUM)
if ($ncTOOL_CHANGE[$i] != "") then
echo "T${ncTOOL_NUM[$i]}" > $ncTOOL_CHANGE[$i]
endif
@ i++
end
endif
endif
# Full step and repeat start definition section.
# ----------------------------------------------
if ($?ncFULL_SR_START) then
	if ($ncMACHINE == "excellonkfp") then
       echo "M25" > $ncFULL_SR_START
      endif
      endif
# Full step and repeat end definition section.
# --------------------------------------------
if ($?ncFULL_SR_END) then
	if ($ncMACHINE == "excellonkfp") then
		echo "M02" > $ncFULL_SR_END
		echo "M08" >> $ncFULL_SR_END
              endif



