From 4c58424b8cd146662328697598e12dbb1f9f8bec Mon Sep 17 00:00:00 2001 From: Karl-Hermann Wieners <karl-hermann.wieners@mpimet.mpg.de> Date: Tue, 19 Nov 2024 07:49:14 +0100 Subject: [PATCH] import: replace here doc names in external scripts --- importexp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/importexp b/importexp index 2246846..e11f980 100755 --- a/importexp +++ b/importexp @@ -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-}' -- GitLab