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



   1 | #!/bin/sh
   2 | 
   3 | echo " VISUAL v1.0"
   4 | echo " Description : tool to make the PRISSMA post-processing"
   5 | 
   6 | #
   7 | # Path definitions
   8 | #
   9 | 
  10 | LOCALDIR=`pwd`
  11 | CHOICESD=$DOMHOME/TOOLS/CHOICES
  12 | TOOLEXEDIR=$DOMHOME/HOSTS/$DOM_HOSTTYPE
  13 | 
  14 | #
  15 | # Detect if all files are ready for run
  16 | #
  17 | 
  18 | if [ -f 'visualensight.choices' ]
  19 | then
  20 |   VISUDIR=`tail -2 visualensight.choices | head -1 | awk -F\' '{print $2}'`
  21 |   if [ ! -d $VISUDIR ]; then
  22 |     echo " -> No directory" $VISUDIR "found : creating one..."
  23 |     mkdir $VISUDIR
  24 |   fi
  25 |   make -f $DOMHOME/TOOLS/VISU/Makefile all
  26 |   $TOOLEXEDIR/visual_$DOM_VERSION.e_$DOM_HOSTTYPE
  27 | else
  28 |   echo " -- No visualensight.choices file found, copying default file."
  29 |   echo "    Fill choices file and run again visual"
  30 |   cp $CHOICESD/visualensight.choices .
  31 | fi