blob: 8aa2842a0b3711c6aad52770a3c80403e4e00ad2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
#! /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 --perms \
--copy-links --times --checksum --verbose \
--exclude host-scripts \
--exclude .svn --exclude '*~' --exclude '#*#' \
* \
"$BERLIOS_LOGIN@shell.berlios.de:/home/groups/fetchmail/htdocs/"
echo "==> Success."
|