Skip to content
Snippets Groups Projects
Commit d7a7251e authored by Karl-Hermann Wieners's avatar Karl-Hermann Wieners
Browse files

importexp: fixed model path to refer to original executable

parent cf8853d7
No related branches found
No related tags found
No related merge requests found
......@@ -59,12 +59,14 @@ do\
echo EOF\
done\
'
# 6. use original model base for executable
sed -r '
s:^(\s*)(set\s+\+x\s*$|(set\s+\+\w+)x):\1\3:
s:^(\s*)SCRIPT_DIR=.*$:\1SCRIPT_DIR='$WORK_DIR':
s:^(\s*)EXPDIR=.*$:\1EXPDIR='$WORK_DIR':
s:^(\s*\.\s+)\./:\1'$RUN_BASE_DIR'/:
s:^\s*cat\s+\$thisscript\s*$:'"$SHOW_HERE_DOCS"':
s:^(\s*(export\s+)?MODEL=")\$\{basedir\}:\1'$MODEL_BASE_DIR':
' "$RUN_SCRIPT" > $RUN_FILE
# Get script shell without possible +x settings to handle
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment