comparison docs/build-docs.sh @ 1632:8bf2b62edd12

Use rsync for uploading.
author Matti Hamalainen <ccr@tnsp.org>
date Fri, 11 Oct 2019 05:10:16 +0300
parents 5a74247c16b5
children 7c64f9b16f8f
comparison
equal deleted inserted replaced
1631:5a74247c16b5 1632:8bf2b62edd12
134 ## Remove temporary files 134 ## Remove temporary files
135 #rm -f "$SRCXML" 135 #rm -f "$SRCXML"
136 136
137 137
138 ## Upload 138 ## Upload
139 do_upload()
140 {
141 rsync -vptog --bwlimit=500 -e ssh "$@"
142 }
143
139 if test "x$1" = "x--upload"; then 144 if test "x$1" = "x--upload"; then
140 scp -C $HTMLPATH/* manual.css "$UPURL/html/" 145 do_upload $HTMLPATH/* manual.css "$UPURL/html/"
141 scp -C "$PDFFILE" "$UPURL" 146 do_upload "$PDFFILE" "$UPURL"
142 scp -C "$HOME/bin/tf5" "$UPURL/tf5.sh" 147 do_upload "$HOME/bin/tf5" "$UPURL/tf5.sh"
143 fi 148 fi