# HG changeset patch # User Matti Hamalainen # Date 1570759816 -10800 # Node ID 8bf2b62edd12af2f08e7f1d2f3b89bc0ac9d3cc8 # Parent 5a74247c16b5035795ab88ac7fcce611edd4fa45 Use rsync for uploading. diff -r 5a74247c16b5 -r 8bf2b62edd12 docs/build-docs.sh --- 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