From bcdd88a2d40f1edaad27c37ea76a2b287249a84a Mon Sep 17 00:00:00 2001 From: "Robin H. Johnson" Date: Thu, 14 Dec 2017 21:39:40 -0800 Subject: [PATCH] tools/catalyst-auto-sparc64: start common post_build refactor Signed-off-by: Robin H. Johnson --- 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* sparc@nightheron.gentoo.org: - rsync -e 'ssh -i /root/.ssh/id_rsa' ${BUILD_SRCDIR_BASE}/builds/multilib/stage3-*${DATESTAMP}*.bz2* sparc@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* \ + sparc@nightheron.gentoo.org: + "${cmd[@]}" \ + ${BUILD_SRCDIR_BASE}/builds/multilib/stage3-*${DATESTAMP}*.bz2* \ + sparc@nightheron.gentoo.org:multilib }