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 | TOOLD=$DOMHOME/TOOLS/AVBP2PRISSMA
13 | EXEDIR=$AVBP_HOME/HOST/$AVBP_HOSTTYPE/TOOLEXEC
14 | CHOICES=$DOMHOME/TOOLS/CHOICES
15 |
16 | if [ -f 'avbp2prissma.choices' ]
17 | then
18 | make -f $TOOLD/makefile
19 | $EXEDIR/avbp2prissma.e_$AVBP_HOSTTYPE
20 |
21 | else
22 |
23 | echo "File avbp2prissma.choices is missing ! "
24 | echo "Copying default ==> check for correctness !"
25 | cp $CHOICES/avbp2prissma.choices .
26 | exit
27 |
28 | fi
29 |
30 | if [ ! -d $DOMHOME/TOOLS/SOLINIT_AVBP ]; then
31 | echo "PRISSMA directory not found !"
32 | echo " -> convert txt file to bin file before running PRISSMA !!"
33 | exit 1
34 | fi
35 |
36 | echo " SOLINIT_AVBP v1.0"
37 | echo " Description : convert initial solution txt infile to bin file"
38 |
39 | #
40 | # Path definitions
41 | #
42 |
43 | TOOLDIR=$DOMHOME/TOOLS/SOLINIT_AVBP
44 |
45 | make -f $TOOLDIR/Makefile all
46 | $DOMHOME/HOSTS/$DOM_HOSTTYPE/solinit_avbp_$DOM_VERSION.e_$DOM_HOSTTYPE
47 |
48 | exit
49 |