X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=solver.sh;h=98482e8ddd1f76377475c38835374989a21e9a2f;hb=b0196aeefbaa53754b1052fab904386707caad87;hp=c4a2426ac76936bd66a1ad75e29f8c8c5adf5d80;hpb=31511e6b2ba2ac8a4650581d9abcb3beb3191a43;p=modules%2Fshaper.git diff --git a/solver.sh b/solver.sh index c4a2426ac..98482e8dd 100755 --- a/solver.sh +++ b/solver.sh @@ -2,8 +2,7 @@ # # Modify plugins.xml to switch solver -export solver=${solver:-SolveSpace} -export PLUGINS_PATH=${PLUGINS_PATH:-${NEWGEOM_ROOT_DIR}/plugins/plugins.xml} +export PLUGINS_PATH=${PLUGINS_PATH:-${SHAPER_ROOT_DIR}/share/salome/resources/shaper/plugins.xml} while [[ $# > 0 ]]; do key="$1" @@ -27,6 +26,8 @@ while [[ $# > 0 ]]; do esac done +if [[ -z ${solver:-} ]]; then exit 0; fi + case $solver in PlaneGCS) export SWITCH_ON=PlaneGCSSolver @@ -41,8 +42,9 @@ esac echo "Switch $solver solver in ${PLUGINS_PATH}" cat ${PLUGINS_PATH} \ - | sed -e "s/^\(\)\?/\2/" \ - | sed -e "s/^\(\)\?//" \ + | tr '\n' '\r' \ + | sed -e "s|\r \r