tools: Consolidate upload() function
Signed-off-by: Matt Turner <mattst88@gentoo.org>
This commit is contained in:
parent
8f478fe30b
commit
7ec486fab4
15 changed files with 23 additions and 257 deletions
|
@ -29,23 +29,6 @@ update_symlinks() {
|
|||
done
|
||||
}
|
||||
|
||||
upload() {
|
||||
local SSH_CMD=(
|
||||
ssh
|
||||
-i ${UPLOAD_KEY}
|
||||
-o UserKnownHostsFile=/dev/null
|
||||
-o VerifyHostKeyDNS=yes
|
||||
-o StrictHostKeyChecking=no
|
||||
)
|
||||
local RSYNC_OPTS=(
|
||||
-e "${SSH_CMD[*]}"
|
||||
--archive
|
||||
--omit-dir-times
|
||||
--delay-updates
|
||||
)
|
||||
rsync "${RSYNC_OPTS[@]}" "$@" ${UPLOAD_USER}@releng-incoming.gentoo.org:${UPLOAD_DEST}
|
||||
}
|
||||
|
||||
post_build() {
|
||||
local set=$1 spec=$2
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue