Salome HOME
Do not copy the tmp mesh. User must use keep working files to debug hybrid output.
[plugins/hybridplugin.git] / bin / mg-hybrid.bash
1 #!/bin/bash
2
3 #bash script mg-hybrid.bash
4 #we have renamed binary executable mg-hybrid.exe V1.3.0 as mg-hybrid.exe_Linux_64_juillet2014
5 #to assume call of other beta-versions of distene mg-hybrid.exe code in standalone plugin HYBRIDPLUGIN sources
6 #and also assume licence file set to overriding licence file of other distene products ( HEXOTIC, GHS3D, etc... )
7 #all that for for only one call of mg-hybrid.bash from salome plugin HYBRIDPLUGIN
8
9 function findOutFile {
10 #find --out parameter result in $resFindOutFile
11 while test $# -gt 0; do
12   case "$1" in
13     -o|--out)
14       if [ -z "$2" ]    # $String is null
15       then
16         resFindOutFile="None"
17       else
18         resFindOutFile=$2
19       fi
20       return
21       ;;
22     *)
23       shift
24       ;;
25   esac
26 done
27 resFindOutFile="None"
28 }
29
30 #echo "mg-hybrid.bash initial parameters are:" $1 $2 $3 $4 
31 echo "mg-hybrid.bash initial parameters are:" $*
32 #$0 is ignored
33
34 echo "mg-hybrid.bash assume licence file set:"
35 env | grep DLIM
36
37 findOutFile $*
38 echo "result output File is:" $resFindOutFile
39
40 $MESHGEMS_ROOT_DIR/bin/run_mg-hybrid.sh $*
41
42 #$MESHGEMS_ROOT_DIR/bin/Linux_64/mg-hybrid.exe $*
43
44 #to EZ and direct debug visualization (with gui salome load script createGroupsOnEntitiesFromGMFFile.py)
45 #cp -f $resFindOutFile /tmp/tmp.mesh
46