X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=solver.sh;h=2e6ed445ee3c0c059f76d14b9dc27b491e0bc173;hb=917398577a81534c6fb2119ed24960000af29444;hp=c4a2426ac76936bd66a1ad75e29f8c8c5adf5d80;hpb=31511e6b2ba2ac8a4650581d9abcb3beb3191a43;p=modules%2Fshaper.git diff --git a/solver.sh b/solver.sh index c4a2426ac..2e6ed445e 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}/plugins/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