3 # Script to upload fetchmail website from Git repository
4 # (C) 2008 - 2010 by Matthias Andree. GNU GPL v3.
7 : ${SOURCEFORGE_LOGIN=m-a}
12 # cd to parent of script
16 echo "==> Running sanity checks"
17 # make sure we have no dangling symlinks
18 if LC_ALL=C file * | egrep broken\|dangling ; then
19 echo "broken symlinks -> abort" >&2
25 echo "==> Uploading website (rsync) to BerliOS"
28 --chmod=ug=rwX,o=rX,Dg=s --perms \
29 --copy-links --times --checksum --verbose \
30 --exclude host-scripts \
31 --exclude .git --exclude '*~' --exclude '#*#' \
33 "$BERLIOS_LOGIN@shell.berlios.de:/home/groups/fetchmail/htdocs/" &
36 echo "==> Uploading website (rsync) to SourceForge"
39 --chmod=ug=rwX,o=rX,Dg=s --perms \
40 --copy-links --times --checksum --verbose \
41 --exclude host-scripts \
42 --exclude .git --exclude '*~' --exclude '#*#' \
44 "${SOURCEFORGE_LOGIN},fetchmail@web.sourceforge.net:htdocs/" &
47 echo "==> Uploading website (rsync) to local"
49 --chmod=ug=rwX,o=rX,Dg=s --perms \
50 --copy-links --times --checksum --verbose \
51 --exclude host-scripts \
52 --exclude .git --exclude '*~' --exclude '#*#' \
54 $HOME/public_html/fetchmail/info/ &
59 echo "==> Synchronizing web dir."
62 echo "==> Done; check rsync output above for success."