Salome HOME
This commit was generated by cvs2git to create tag 'V1_4_0b1'.
[modules/kernel.git] / bin / runIDLparser.in
1 #! /bin/bash
2
3 # print the help message ====================================
4
5 # test $@="-h" -o -z $@
6
7 hh=0
8
9 if test "$#" = "0";then
10     hh=1
11 else
12     for a in $@; do
13         if test "$a" = "-h"; then
14             hh=1
15         fi
16     done
17 fi
18
19 if test "$hh" = "1" ; then
20     echo ""
21     echo "Usage : "
22     echo ""
23     echo "   to run IDLparser:"
24     echo ""
25     echo "        $0 -Wbcatalog=<my_catalog.xml>[,icon=<pngfile>][,version=<num>][,author=<name>][,name=<component_name>][,multistudy=<component_multistudy>][,remove=component_name] <file.idl>   "
26     echo ""
27     echo "   to have omniidl help:"
28     echo ""
29     echo "        $0 -u "
30     echo ""
31     exit 1
32 fi
33 #============================================================
34
35 # environment ==============================================
36 @ENVSCRIPT@
37
38 cd $DIR
39
40 PYTHONPATH=${PYTHONPATH}:${SALOME_HOME_DIR}/bin
41 #============================================================
42
43 # omiidl ====================================================
44 omniidl -bIDLparser -I ${SALOME_SRC_DIR}/idl $@
45 #============================================================