]> Pileus Git - ~andy/fetchmail/commitdiff
Also upload to SourceForge.
authorMatthias Andree <matthias.andree@gmx.de>
Thu, 27 May 2010 07:57:24 +0000 (09:57 +0200)
committerMatthias Andree <matthias.andree@gmx.de>
Thu, 27 May 2010 07:57:24 +0000 (09:57 +0200)
website/host-scripts/upload-website.sh

index 356134022131d7a5d0f3a70f3e4e2edd388226d5..a193c3b34719b0c3574f83751c8e29448c883203 100755 (executable)
@@ -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 \