[TYPO3-dev] Generating Updatepackages
Andreas Otto
andreas.otto at dkd.de
Fri Apr 13 12:37:55 CEST 2007
Hi Til,
Til Obes wrote:
> Hmm i'm finished with the scripts, but i have a problem with sf.net.
> It's sometimes overloaded and i get a svn error.
> But the diff --summarize only works with repository urls.
> So do i have to setup a repository on my server or are there other
> options?
You could use rsync to mirror the SVN repository, see the example below.
# This variable defines where the local SVN repository is located
PATH_SVN_REPOSITORIES=/var/local/svn
# This variable defines the project name
PROJECT_NAME=typo3
# Define user and group
USER="wwwrun"
GROUP="www"
# Set language to default
OLD_LANG=${LANG}
unset LANG
# Go to local SVN repository
echo "Changing directory to [${PATH_SVN_REPOSITORIES}/${PROJECT_NAME}]."
cd ${PATH_SVN_REPOSITORIES}/${PROJECT_NAME}
# Update the local repository with rsync
export RSYNC_PROXY=rsync-svn.sourceforge.net:80
echo "Updating SVN repository using"
echo "RSYNC_PROXY=${RSYNC_PROXY}"
echo "rsync -av rsync-svn-${PROJECT_NAME:0:1}::svn/${PROJECT_NAME}/* ."
rsync -av rsync-svn-${PROJECT_NAME:0:1}::svn/${PROJECT_NAME}/* .
unset RSYNC_PROXY
# Change permissions
echo "Changing owner and group of [${PATH_SVN_REPOSITORIES}/${PROJECT_NAME}]
using"
echo "USER=${USER}"
echo "GROUP=${GROUP}"
chown -R ${USER}:${GROUP} ${PATH_SVN_REPOSITORIES}/${PROJECT_NAME}
LANG=${OLD_LANG}
Cheers,
Andreas
More information about the TYPO3-dev
mailing list