#
# /1f/datools/ecad/dracu: runs the ECAD drc
#
#	dracu host filename rulesname cellname
#
set verbose
cat /tmp/dracula.lock
if ($status == 0) then
pupftp $1 <<--EOF
store /tmp/dracula.lock WaitMsg.SUM
quit

--EOF
while (-e /tmp/dracula.lock)
	sleep 120
	end
endif
pwd > /tmp/dracula.lock
date >> /tmp/dracula.lock
limit data 16m
/bin/rm in.cif rules.data
pupftp $1 <<--EOF
retrieve $2.cif in.cif
retrieve $3 rules.data
quit

--EOF
echo "$4\
" >> rules.data
/user/csl/ecad/drc16p/PDRACULA < rules.data
time csh JXRUN.COM >& drc.log
/bin/rm /tmp/dracula.lock
pupftp $1 <<--EOF
store drcout.cif $2.drcout
store DRCOUT.SUM $2.SUM
quit

--EOF