Salome HOME
Merge branch 'V9_6_BR'
[tools/sat_salome.git] / products / compil_scripts / Togl.sh
1 #!/bin/bash
2
3 echo "##########################################################################"
4 echo "Togl" $VERSION
5 echo "##########################################################################"
6
7
8
9 cp -r $SOURCE_DIR/* . 
10 echo
11 echo "*** configure"
12 ./configure --prefix=${TCLHOME} --with-tcl=${TCLHOME}/lib \
13     --with-tk=${TCLHOME}/lib --with-tclinclude=${TCLHOME}/include --with-tkinclude=${TCLHOME}/include
14 if [ $? -ne 0 ]
15 then
16     echo "ERROR on configure"
17     exit 1
18 fi
19
20 echo
21 echo "*** make"
22 make
23 if [ $? -ne 0 ]
24 then
25     echo "ERROR on make"
26     exit 2
27 fi
28
29 echo
30 echo "*** make install"
31 make install
32 if [ $? -ne 0 ]
33 then
34     echo "ERROR on make install"
35     exit 3
36 fi
37
38 mkdir -p $PRODUCT_INSTALL
39 echo "Togl is installed into tcl dir $TCLHOME" > $PRODUCT_INSTALL/README
40
41 echo
42 echo "########## END"
43