Salome HOME
Rename table to board for jobs publishing
[tools/sat.git] / data / compil_scripts / tk.sh
1 #!/bin/bash
2
3 echo "##########################################################################"
4 echo "tk" $VERSION
5 echo "##########################################################################"
6
7 rm -Rf $PRODUCT_INSTALL
8
9 cp $TCLHOME/include/*.h generic/
10
11 echo
12 echo "*** configure"
13 $SOURCE_DIR/unix/configure --prefix=$TCLHOME --enable-shared --enable-threads \
14     --with-tcl=$TCLHOME/lib --with-tclinclude=$TCLHOME/include
15 if [ $? -ne 0 ]
16 then
17     echo "ERROR on configure"
18     exit 2
19 fi
20
21 echo
22 echo "*** make"
23 make
24 if [ $? -ne 0 ]
25 then
26     echo "ERROR on make"
27     exit 2
28 fi
29
30 echo
31 echo "*** make install"
32 make install 
33 if [ $? -ne 0 ]
34 then
35     echo "ERROR on make install"
36     exit 3
37 fi
38
39 mkdir -p $PRODUCT_INSTALL
40 echo "Tk is installed into tcl dir $TCLHOME" > $PRODUCT_INSTALL/README
41 cp tkConfig.sh $TCLHOME/lib #Needed fot netgen
42
43 echo
44 echo "########## END"
45