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



   1 | #!/bin/sh
   2 | #
   3 | 
   4 | echo " AVBP2PRISSMA v2.0"
   5 | echo " Description : tool to create an initial solution for PRISSMA from an AVBP solution"
   6 | 
   7 | if [ ! -d $AVBP_HOME ]; then
   8 |   echo "Error AVBP directory not present!"
   9 |   exit 1
  10 | fi
  11 | 
  12 | LOCAL=`pwd`
  13 | TOOLD=$DOMHOME/TOOLS/AVBP2PRISSMA
  14 | EXEDIR=$AVBP_HOME/HOST/$AVBP_HOSTTYPE/TOOLEXEC
  15 | CHOICES=$DOMHOME/TOOLS/CHOICES
  16 | 
  17 | if [ -f 'avbp2prissma.choices' ]
  18 | then
  19 |   cd $TOOLD
  20 |   make 
  21 |   cd $LOCAL
  22 |   $EXEDIR/avbp2prissma.e_$AVBP_HOSTTYPE
  23 | 
  24 | else
  25 | 
  26 |  echo "File avbp2prissma.choices is missing ! "
  27 |  echo "Copying default ==> check for correctness !"
  28 |  cp $CHOICES/avbp2prissma.choices .
  29 |  exit
  30 | 
  31 | fi
  32 | 
  33 | echo
  34 | 
  35 | if [ ! -d $DOMHOME/TOOLS/SOLINIT_AVBP ]; then
  36 |   echo "PRISSMA directory not found !"
  37 |   echo " -> convert txt file to bin file before running PRISSMA !!"
  38 |   exit 1
  39 | fi
  40 | 
  41 | echo " SOLINIT_AVBP v1.0"
  42 | echo " Description : convert initial solution txt infile to bin file"
  43 | 
  44 | #
  45 | # Path definitions
  46 | #
  47 | 
  48 | TOOLDIR=$DOMHOME/TOOLS/SOLINIT_AVBP
  49 | 
  50 | make -f $TOOLDIR/Makefile all
  51 | $DOMHOME/HOSTS/$DOM_HOSTTYPE/solinit_avbp_$DOM_VERSION.e_$DOM_HOSTTYPE
  52 | 
  53 | exit
  54 |