aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xwebsite/host-scripts/upload-website.sh22
1 files changed, 18 insertions, 4 deletions
diff --git a/website/host-scripts/upload-website.sh b/website/host-scripts/upload-website.sh
index 8aa2842a..1bf10092 100755
--- a/website/host-scripts/upload-website.sh
+++ b/website/host-scripts/upload-website.sh
@@ -1,7 +1,7 @@
#! /bin/sh
# Script to upload fetchmail website from SVN repository
-# (C) 2008 by Matthias Andree. GNU GPL v3.
+# (C) 2008 - 2009 by Matthias Andree. GNU GPL v3.
: ${BERLIOS_LOGIN=m-a}
@@ -19,7 +19,9 @@ if file * | egrep broken\|dangling ; then
exit 1
fi
-echo "==> Uploading website (rsync)"
+pids=
+
+echo "==> Uploading website (rsync) to BerliOS"
# upload
rsync \
--chmod=ug=rwX,o=rX,Dg=s --perms \
@@ -27,6 +29,18 @@ rsync \
--exclude host-scripts \
--exclude .svn --exclude '*~' --exclude '#*#' \
* \
- "$BERLIOS_LOGIN@shell.berlios.de:/home/groups/fetchmail/htdocs/"
+ "$BERLIOS_LOGIN@shell.berlios.de:/home/groups/fetchmail/htdocs/" &
+pids="$pids $!"
+
+echo "==> Uploading website (rsync) to TU Dortmund"
+rsync \
+ --chmod=ug=rwX,o=rX,Dg=s --perms \
+ --copy-links --times --checksum --verbose \
+ --exclude host-scripts \
+ --exclude .svn --exclude '*~' --exclude '#*#' \
+ * \
+ ma@fat-tony.dt.e-technik.uni-dortmund.de:public_html/fetchmail/info/ &
+pids="$pids $!"
-echo "==> Success."
+wait $pids
+echo "==> Done; check rsync output above for success."