From: vsr Date: Mon, 15 Jun 2009 14:53:52 +0000 (+0000) Subject: Integrate patch for v5.1.2 from Nicolas CROUZET X-Git-Tag: V5_1_2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=7f09e59dcc7579b1d0039c9fc59aaebcf6403c11;p=tools%2Fhxx2salome.git Integrate patch for v5.1.2 from Nicolas CROUZET --- diff --git a/scripts/hxx2salome b/scripts/hxx2salome index 0dce7f8..261677a 100755 --- a/scripts/hxx2salome +++ b/scripts/hxx2salome @@ -427,9 +427,16 @@ SHELL_EXT=sh do_compile=0 do_launch=0 make_gui=0 - # +# welcome # print some welcome info # +gene_dir=`dirname $0` +if [ ! -f ${gene_dir}/parse3.awk -o ! -f ${gene_dir}/template_src.tgz ] # final check +then + echo -e "\nError : scripts parse3.awk or template_src.tgz not present in hxx2salome directory : $gene_dir" + usage +fi +# while getopts "cs:e:h:lg" Option do case $Option in @@ -496,41 +503,6 @@ else fi fi fi - -# look up hxx2salome scripts -# - first search in directory ${HXX2SALOME_ROOT_DIR} (if the variable is defined) -# - then search in directory ${HXX2SALOME_ROOT_DIR}/bin -# - finally seach locally. -# -if [ ${HXX2SALOME_ROOT_DIR} ] && [ -d ${HXX2SALOME_ROOT_DIR} ] -then - echo " HXX2SALOME_ROOT_DIR variable is defined : ${HXX2SALOME_ROOT_DIR} => we look up hxx2salome scripts inside" - if [ -f ${HXX2SALOME_ROOT_DIR}/parse1.awk -a -f ${HXX2SALOME_ROOT_DIR}/parse2.awk ] # check if script are found in ${HXX2SALOME_ROOT_DIR} - then - gene_dir=${HXX2SALOME_ROOT_DIR} - elif [ -f ${HXX2SALOME_ROOT_DIR}/bin/parse1.awk -a -f ${HXX2SALOME_ROOT_DIR}/bin/parse2.awk ] # else check /bin directory - then - gene_dir=${HXX2SALOME_ROOT_DIR}/bin - else - echo -e "\nError : Variable HXX2SALOME_ROOT_DIR not correctly set" - usage - fi -else - echo "HXX2SALOME_ROOT_DIR directory not set => we look up hxx2salome scripts locally" - if [ -f parse1.awk -a -f parse2.awk ] # check if script are found locally - then - gene_dir=`pwd` # case where hxx2salome was launched from HXX2SALOME directory - else - echo -e "\nError : Variable HXX2SALOME_ROOT_DIR is not set, and hxx2salome didn't find his scripts locally" - usage - fi -fi -echo " hxx2salome directory found : $gene_dir" -if [ ! -f ${gene_dir}/parse3.awk -o ! -f ${gene_dir}/template_src.tgz ] # final check -then - echo -e "\nError : scripts parse3.awk or template_src.tgz not present in hxx2salome directory : $gene_dir" - usage -fi # # get class name # diff --git a/scripts/template_src.tgz b/scripts/template_src.tgz index 2bdbea0..a8b7b24 100644 Binary files a/scripts/template_src.tgz and b/scripts/template_src.tgz differ