Skip to content
Snippets Groups Projects
Commit 807197d9 authored by Michael Langguth's avatar Michael Langguth
Browse files

Leave template runscript untouced when using setup_runscript_templates.sh.

parent 8ba6c587
No related branches found
No related tags found
No related merge requests found
Pipeline #59641 passed
......@@ -20,6 +20,7 @@ base_data_dir_default=/p/project/deepacf/deeprain/video_prediction_shared_folder
CURR_DIR_FULL=`pwd`
CURR_DIR="$(basename "$CURR_DIR_FULL")"
BASE_DIR="$(dirname "$CURR_DIR_FULL")"
USER=$USER
### Some sanity checks ###
# ensure that the script is executed from the env_setup-subdirectory
......@@ -51,14 +52,16 @@ fi
echo "Start setting up templates under nonHPC_scripts/..."
for f in ${BASE_DIR}/nonHPC_scripts/*template.sh; do
echo ${f}
sed -i "s|\(.*_dir=\).*|\1${data_dir}|g" ${f}
fnew=${f%%.*}_${USER}.sh
cp ${f} ${fnew}
sed -i "s|\(.*_dir=\).*|\1${data_dir}|g" ${fnew}
done
echo "Done!"
echo "Start setting up templates under HPC_scripts/"
for f in ${BASE_DIR}/HPC_scripts/*template.sh; do
echo ${f}
sed -i "s|\(.*_dir=\).*|\1${data_dir}|g" ${f}
fnew=${f%%.*}_${USER}.sh
cp ${f} ${fnew}
sed -i "s|\(.*_dir=\).*|\1${data_dir}|g" ${fnew}
done
# end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment