Commit 76c7f0b8 authored by Willi Rath's avatar Willi Rath

Add wrapper script for re-rendering

parent a2dea166
#!/bin/bash
function re-render-project {
export GIT_LFS_SKIP_SMUDGE=1
project_name=$1
git_url="git@git.geomar.de:data/${project_name}.git"
tmp_dir="/tmp/re-render_${project_name}_`date -Ins`"
git clone ${git_url} ${tmp_dir}
data_repo_renderer \
--prefix=${tmp_dir} \
--util=${project_name}/util \
${project_name}/meta.yaml
cd ${tmp_dir}
new_branch="re-render_`date +%s%N`_`git describe`"
git checkout -b ${new_branch}
git add .
git commit -m "Re-render"
git push -u origin ${new_branch}
cd -
rm -rf ${tmp_dir}
}
export -f re-render-project
ls -1 -d */ | tr -d '/$' | xargs -n1 -P4 -I {} bash -c "re-render-project {}"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment