Salome HOME
updated copyright message
[tools/yacsgen.git] / Examples / build.sh
1 #/bin/bash
2 # build all examples
3
4 cur_dir=`pwd`
5
6 script_dir=`dirname $0`
7
8 # activate stop on error
9 #set -e
10
11 cd $script_dir
12 $script_dir/clean.sh
13 list_dirs="calcium1 calcium2 cpp1 cpp2 cppgui1 fort1 fort2 pydoc1 pygui1 pyth1 pyth2 types1"
14 #" mpi1 parahxx1 hxx1"
15 for dir in $list_dirs ; do
16   cd $dir
17   echo Building $dir ...
18   ./build.sh >build.log 2>&1
19   ret=$?
20   if [ $ret -ne 0 ] ; then
21     echo "Stop on error. See:"
22     echo "  "`pwd`/build.log
23     exit 1 
24   fi
25   cd ..
26 done
27
28 echo Build finished!