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

import: replace here doc names in external scripts

parent 6a07dcd2
No related branches found
No related tags found
No related merge requests found
......@@ -92,6 +92,7 @@ do
# 2. get rid of possible +x settings (and optionally -e)
# 3. to handle external scripts, replace script dir with tmp dir
# 4. to handle external scripts, replace working dir with tmp dir
# 4a to handle external scripts, remove basedir refs from here docs
# 5. to handle external scripts, replace ./ calls appropriately
# 6. to handle external scripts, replace build and model dirs appropriately
# 7. ignore function make_and_change_to_experiment_dir
......@@ -136,6 +137,7 @@ cd '$WORK_DIR'
s:^(\s*)experiments_dir=.*$:\1experiments_dir='$WORK_DIR':
s:^(\s*)BUILD_DIR=.*$:\1BUILD_DIR='$BUILD_DIR':
s:^(\s*)EXPDIR=.*$:\1EXPDIR='$WORK_DIR':
s:(>\s*)\$\{?basedir\}?/run/:\1:
s:^(\s*\.\s+)\./:\1'$RUN_BASE_DIR'/:
s:^(\s*(export\s+)?basedir=).*$:\1'$MODEL_BASE_DIR':
'${SUBST_BUILD_DIR-}'
......
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