diff options
Diffstat (limited to 'website/host-scripts')
-rwxr-xr-x | website/host-scripts/upload-website.sh | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/website/host-scripts/upload-website.sh b/website/host-scripts/upload-website.sh new file mode 100755 index 00000000..de1c4cbf --- /dev/null +++ b/website/host-scripts/upload-website.sh @@ -0,0 +1,31 @@ +#! /bin/sh + +# Script to upload fetchmail website from SVN repository +# (C) 2008 by Matthias Andree. GNU GPL v3. + +: ${BERLIOS_LOGIN=m-a} + +# abort on error +set -e + +# cd to parent of script +cd $(dirname "$0") +cd .. + +echo "==> Running sanity checks" +# make sure we have no dangling symlinks +if file * | egrep broken\|dangling ; then + echo "broken symlinks -> abort" >&2 + exit 1 +fi + +echo "==> Uploading website (rsync)" +# upload +rsync \ + --chmod=ug=rwX,o=rX,Dg=s --copy-links --times --checksum --verbose \ + --exclude host-scripts \ + --exclude .svn --exclude '*~' --exclude '#*#' \ + * \ + "$BERLIOS_LOGIN@shell.berlios.de:/home/groups/fetchmail/htdocs/" + +echo "==> Success." |