From: <jt...@us...> - 2007-04-14 23:17:58
|
Revision: 244 http://ro-oslib.svn.sourceforge.net/ro-oslib/?rev=244&view=rev Author: jtytgat Date: 2007-04-14 16:17:55 -0700 (Sat, 14 Apr 2007) Log Message: ----------- This script can be used to update the OSLib website with the commited working copy. Use: ./uploate-website <username> with <username> your sf.net developer username. Added Paths: ----------- trunk/upload-website Added: trunk/upload-website =================================================================== --- trunk/upload-website (rev 0) +++ trunk/upload-website 2007-04-14 23:17:55 UTC (rev 244) @@ -0,0 +1,35 @@ +#!/bin/bash +# Uploads the OSLib website based on the local SVN repository contents. +# Written by John Tytgat +# Syntax: update-website <sf.net username> + +set -e + +if [ "x"$1 == "x" ] ; then + echo "Syntax: update-website <sf.net username>" + exit 1 +fi + +WEBSITE_SRC="`dirname $0`/website" +USERNAME="$1" + +# Small sanity check verifying if we can find the root of the OSLib website as +# directory. +if [ ! -d "$WEBSITE_SRC" ] ; then + echo "Failed to find the OSLib website contents at $WEBSITE_SRC" + exit 1 +fi + +# Check if the local SVN repository of the website does not contain local modifications +# which haven't been commited yet. +SVNCHANGES="`svn status --non-interactive $WEBSITE_SRC 2>&1`" +if [ ! -z "$SVNCHANGES" ] ; then + echo "Local SVN directory $WEBSITE_SRC is not clean. Please clean it and/or commit first." + echo $SVNCHANGES + exit 1 +fi + +# Sync it: +rsync -zr --delete --force --progress -C --rsh="ssh -l $USERNAME" $WEBSITE_SRC/ $USE...@sh...:/home/groups/r/ro/ro-oslib/htdocs + +echo "Done." Property changes on: trunk/upload-website ___________________________________________________________________ Name: svn:executable + * This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |