commit: bcdd88a2d40f1edaad27c37ea76a2b287249a84a Author: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org> AuthorDate: Fri Dec 15 05:39:40 2017 +0000 Commit: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org> CommitDate: Fri Dec 15 05:39:40 2017 +0000 URL: https://gitweb.gentoo.org/proj/releng.git/commit/?id=bcdd88a2
tools/catalyst-auto-sparc64: start common post_build refactor Signed-off-by: Robin H. Johnson <robbat2 <AT> gentoo.org> tools/catalyst-auto-sparc64.conf | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/tools/catalyst-auto-sparc64.conf b/tools/catalyst-auto-sparc64.conf index c866c081..f93796f0 100644 --- a/tools/catalyst-auto-sparc64.conf +++ b/tools/catalyst-auto-sparc64.conf @@ -41,7 +41,21 @@ pre_build() { post_build() { - rsync -e 'ssh -i /root/.ssh/id_rsa' ${BUILD_SRCDIR_BASE}/builds/default/stage3-*${DATESTAMP}*.bz2* ${BUILD_SRCDIR_BASE}/builds/default/*${DATESTAMP}*.iso* sp...@nightheron.gentoo.org: - rsync -e 'ssh -i /root/.ssh/id_rsa' ${BUILD_SRCDIR_BASE}/builds/multilib/stage3-*${DATESTAMP}*.bz2* sp...@nightheron.gentoo.org:multilib - + mkdir -p ${TMPDIR}/empty + cmd=( + rsync + -e 'ssh -i /root/.ssh/id_rsa' + -a + --omit-dir-times + --delay-updates + ) + "${cmd[@]}" ${TMPDIR}/empty ${DEST} + "${cmd[@]}" ${TMPDIR}/empty ${DEST}/multilib + "${cmd[@]}" \ + ${BUILD_SRCDIR_BASE}/builds/default/stage3-*${DATESTAMP}*.bz2* \ + ${BUILD_SRCDIR_BASE}/builds/default/*${DATESTAMP}*.iso* \ + sp...@nightheron.gentoo.org: + "${cmd[@]}" \ + ${BUILD_SRCDIR_BASE}/builds/multilib/stage3-*${DATESTAMP}*.bz2* \ + sp...@nightheron.gentoo.org:multilib }