Mercurial > hg > batmud > ggrtf
changeset 1632:8bf2b62edd12
Use rsync for uploading.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Fri, 11 Oct 2019 05:10:16 +0300 |
parents | 5a74247c16b5 |
children | f5c89fd410bb |
files | docs/build-docs.sh |
diffstat | 1 files changed, 8 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/docs/build-docs.sh Fri Oct 11 05:10:07 2019 +0300 +++ b/docs/build-docs.sh Fri Oct 11 05:10:16 2019 +0300 @@ -136,8 +136,13 @@ ## Upload +do_upload() +{ + rsync -vptog --bwlimit=500 -e ssh "$@" +} + if test "x$1" = "x--upload"; then - scp -C $HTMLPATH/* manual.css "$UPURL/html/" - scp -C "$PDFFILE" "$UPURL" - scp -C "$HOME/bin/tf5" "$UPURL/tf5.sh" + do_upload $HTMLPATH/* manual.css "$UPURL/html/" + do_upload "$PDFFILE" "$UPURL" + do_upload "$HOME/bin/tf5" "$UPURL/tf5.sh" fi