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



   1 | #!/bin/sh
   2 | 
   3 | echo " TABFSCK v1.0"
   4 | echo "   Description : tool to create a table for the FS-SNBcK model"
   5 | 
   6 | #
   7 | # Path definitions
   8 | #
   9 | 
  10 | LOCALDIR=`pwd`
  11 | CHOICESD=$DOMHOME/TOOLS/CHOICES
  12 | PERSODIR=$DOMHOME/TOOLS/INCLUDE
  13 | TOOLDIR=$DOMHOME/TOOLS/TABFSCK
  14 | 
  15 | #
  16 | # Detect if all files are ready for run
  17 | #
  18 | 
  19 | ECHOICES=0
  20 | DORUN=1
  21 | 
  22 | if [ -f 'tabfsck.choices' ]
  23 | then
  24 |   ECHOICES=1
  25 | fi
  26 | 
  27 | if [ $ECHOICES -eq 1 ]
  28 | then
  29 |   echo " Choices file found"
  30 | else
  31 |   cp $CHOICESD/tabfsck.choices .
  32 |   echo " -- No tabfsck.choices file found, copying default file."
  33 |   echo "    Fill the choices file and run again tabfsck"
  34 |   DORUN=0
  35 | fi
  36 | 
  37 | if [ -d SPECTRAL/ ]
  38 | then
  39 |   DORUN=1
  40 | else
  41 |   echo "Linking spectral directory ..."
  42 |   DORUN=0
  43 |   ln -s $DOMHOME/WORK/DATA/SPECTRAL
  44 | fi
  45 | 
  46 | if [ $DORUN -eq 1 ]
  47 | then
  48 |   make -f $TOOLDIR/Makefile all
  49 |   $DOMHOME/HOSTS/$DOM_HOSTTYPE/tabfsck_$DOM_VERSION.e_$DOM_HOSTTYPE
  50 | fi