#! /bin/csh -f
# Visualize unreleased entries.

limit filesize 30000
# We need a big cpu time limit for 4096.
limit cputime 1000
limit coredumpsize 0

unsetenv LD_LIBRARY_PATH

set outfile = tmp/vur.out
rm -f $outfile

set path = ($path .)
#TEMPTEMP -- make sure js_data_dir is right
#TEMPTEMP -- do we want no_protein_check?
#TEMPTEMP -- do we want check_res_list?
bin/java -classpath ./s2d.jar -mx50000000 star2devise.S2DMain \
  -force -check_res_list \
  -data_dir data_dir -js_data_dir bmrb/dynamic_data \
  -session_dir session_dir/.unreleased -html_dir html_unreleased \
  -conn_file chem_info/connections -do_pdb 2 $* >& $outfile
set failed = $status
chmod 644 $outfile
if ($failed) then
  echo FAILED
  exit 1
else
  echo OK
endif
