Salome HOME
Synchronize adm files
[modules/hexablock.git] / src / HEXABLOCK / make.main
1
2 # ================================================== create_test
3 create_test()
4 {
5 cat << END_PGM
6 // C++ : appel de $test_u
7
8 int $test_u (int nbargs, const char* tabargs []);
9
10 // ================================ main
11 int main (int nbargs, const char* tabargs [])
12 {
13    int ier = $test_u (nbargs, tabargs);
14    return ier;
15 }
16
17 END_PGM
18 }
19 # ================================================== Begin
20
21 test_u=test_hexa
22 if ( [ -n "$1" ] ) then
23    test_u=$1
24    fi
25
26 echo 
27 echo  " ... Generation du fichier $test_u.cpp"
28 echo 
29
30 rm -rf work/$test_u.cpp
31 create_test > work/$test_u.cpp
32
33