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

Refinement of setup_runscript_templates.sh.

parent 21f03f13
Branches
Tags
No related merge requests found
Pipeline #59642 passed
...@@ -52,6 +52,7 @@ fi ...@@ -52,6 +52,7 @@ fi
echo "Start setting up templates under nonHPC_scripts/..." echo "Start setting up templates under nonHPC_scripts/..."
for f in ${BASE_DIR}/nonHPC_scripts/*template.sh; do for f in ${BASE_DIR}/nonHPC_scripts/*template.sh; do
echo "Setting up ${f}..."
fnew=${f%%.*}_${USER}.sh fnew=${f%%.*}_${USER}.sh
cp ${f} ${fnew} cp ${f} ${fnew}
sed -i "s|\(.*_dir=\).*|\1${data_dir}|g" ${fnew} sed -i "s|\(.*_dir=\).*|\1${data_dir}|g" ${fnew}
...@@ -60,8 +61,10 @@ echo "Done!" ...@@ -60,8 +61,10 @@ echo "Done!"
echo "Start setting up templates under HPC_scripts/" echo "Start setting up templates under HPC_scripts/"
for f in ${BASE_DIR}/HPC_scripts/*template.sh; do for f in ${BASE_DIR}/HPC_scripts/*template.sh; do
echo "Setting up ${f}..."
fnew=${f%%.*}_${USER}.sh fnew=${f%%.*}_${USER}.sh
cp ${f} ${fnew} cp ${f} ${fnew}
sed -i "s|\(.*_dir=\).*|\1${data_dir}|g" ${fnew} sed -i "s|\(.*_dir=\).*|\1${data_dir}|g" ${fnew}
done done
echo "Done!"
# end # end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment