run_seq [SRC] [CPP] [JOB] [SCAN]
TOOLS / SCRIPTS



   1 | #!/bin/sh
   2 | 
   3 | echo " PRISSMA $DOM_VERSION"
   4 | 
   5 | #
   6 | # Path definitions
   7 | #
   8 | 
   9 | LOCALDIR=`pwd`
  10 | PERSODIR=$DOMHOME/SEQCODE/FUNCTIONS
  11 | SEQDIR=$DOMHOME/SEQCODE
  12 | CHOICESD=$DOMHOME/WORK/INPUT
  13 | 
  14 | #
  15 | # Detect if all files are ready for run
  16 | #
  17 | 
  18 | ECHOICES=0
  19 | DORUN=1
  20 | 
  21 | if [ -f 'prissma.choices' ]
  22 | then
  23 |   ECHOICES=1
  24 | fi
  25 | 
  26 | if [ $ECHOICES -eq 1 ]
  27 | then
  28 |   echo " Choices file found"
  29 | else
  30 |   if [ -f 'domasium.choices' ]
  31 |   then 
  32 | 	echo " -- Old domasium.choices file"
  33 |     mv -v domasium.choices prissma.choices
  34 |     DORUN=1
  35 |   else
  36 |     cp $CHOICESD/prissma.choices .
  37 |     echo " -- No prissmadom_seq.choices file found, copying default file."
  38 |     echo "    Fill the choices file and run again run_seq"
  39 |     DORUN=0
  40 |   fi
  41 | fi
  42 | 
  43 | if [ $DORUN -eq 1 ]
  44 | then
  45 |   make -f $SEQDIR/Makefile all
  46 |   $DOMHOME/HOSTS/$DOM_HOSTTYPE/prissma_$DOM_VERSION.e_$DOM_HOSTTYPE
  47 | fi
  48 |