diff options
Diffstat (limited to 'website/host-scripts/upload-website.sh')
-rwxr-xr-x | website/host-scripts/upload-website.sh | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/website/host-scripts/upload-website.sh b/website/host-scripts/upload-website.sh index 35613402..a193c3b3 100755 --- a/website/host-scripts/upload-website.sh +++ b/website/host-scripts/upload-website.sh @@ -4,6 +4,7 @@ # (C) 2008 - 2010 by Matthias Andree. GNU GPL v3. : ${BERLIOS_LOGIN=m-a} +: ${SOURCEFORGE_LOGIN=m-a} # abort on error set -eu @@ -32,6 +33,17 @@ rsync \ "$BERLIOS_LOGIN@shell.berlios.de:/home/groups/fetchmail/htdocs/" & pids="$pids $!" +echo "==> Uploading website (rsync) to SourceForge" +# upload +rsync \ + --chmod=ug=rwX,o=rX,Dg=s --perms \ + --copy-links --times --checksum --verbose \ + --exclude host-scripts \ + --exclude .git --exclude '*~' --exclude '#*#' \ + * \ + "${SOURCEFORGE_LOGIN},fetchmail@web.sourceforge.net:htdocs/" & +pids="$pids $!" + echo "==> Uploading website (rsync) to local" rsync \ --chmod=ug=rwX,o=rX,Dg=s --perms \ |