diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2017-12-14 21:39:40 -0800 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2017-12-14 21:39:40 -0800 |
commit | bcdd88a2d40f1edaad27c37ea76a2b287249a84a (patch) | |
tree | 87fb9ac0e248e3c38c905298c9584bc793d24893 /tools | |
parent | tools/catalyst-auto-amd64: stage4 builds should be optional. (diff) | |
download | releng-bcdd88a2d40f1edaad27c37ea76a2b287249a84a.tar.gz releng-bcdd88a2d40f1edaad27c37ea76a2b287249a84a.tar.bz2 releng-bcdd88a2d40f1edaad27c37ea76a2b287249a84a.zip |
tools/catalyst-auto-sparc64: start common post_build refactor
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/catalyst-auto-sparc64.conf | 20 |
1 files 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 } |