From db9b173fc6192cf328c990972ca405f3f740a1c2 Mon Sep 17 00:00:00 2001 From: grubert Date: Tue, 3 Jan 2012 13:11:33 +0000 Subject: [PATCH] check for file "ON_SOURCEFORGE", rsync locally if it exists git-svn-id: https://docutils.svn.sourceforge.net/svnroot/docutils/trunk@7300 929543f6-e4f2-0310-98a6-ba3bd3dd1d04 --- sandbox/infrastructure/docutils-update.local | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/sandbox/infrastructure/docutils-update.local b/sandbox/infrastructure/docutils-update.local index 215c709cb..f3b4b833e 100755 --- a/sandbox/infrastructure/docutils-update.local +++ b/sandbox/infrastructure/docutils-update.local @@ -52,6 +52,11 @@ umask 002 # URL for SVN project checkout: svnurl=https://docutils.svn.sourceforge.net/svnroot/docutils/trunk +on_sourceforge=0 +if [ -e "ON_SOURCEFORGE" ] ; then + on_sourceforge=1 +fi + htmlfilelist=`pwd`/htmlfiles.lst basedir=`pwd`/update-dir if [ ! -e $basedir ] ; then @@ -318,9 +323,14 @@ fi # specify your user in your .ssh/config cd $htdocsdest -# do not use -a to avoid "failed to set permissions" -# -t preserve modification times. But a new svn checkout has new modtime. -rsync -e ssh -r -t ./ web.sourceforge.net:$remotehtdocs +if [ $on_sourceforge ] ; then + print_feedback "rsync on sf" + rsync -r -t ./ $remotehtdocs +else + # do not use -a to avoid "failed to set permissions" + # -t preserve modification times. But a new svn checkout has new modtime. + rsync -e ssh -r -t ./ web.sourceforge.net:$remotehtdocs +fi trap - 0 1 2 3 15 rm -rf $lockdir -- 2.11.4.GIT