i just thought about my perl programm and thought it’s a bit awkward if you need libraries. My new solution which is much more stable and in ruby:
#!ruby -W0
#SVN Path where to upgrade/switch from
@doc = 'http://svn.automattic.com/wordpress/tags/'
#path where your repository lays
@pathtoupdate = "/var/www/wordpress"
# puts @doc
# list all in the given path
@tags = %x[svn list #{@doc}]
# puts @tags
#split by CR
@ltags = @tags.split(/\n/)
# puts @ltags.last
#take the last available
@doc.concat(@ltags.last)
#upgrade to the latest revision
@upgrade = %x[svn sw #{@doc} #{@pathtoupdate}]
#puts @upgrade
#SVN Path where to upgrade/switch from
@doc = 'http://svn.automattic.com/wordpress/tags/'
#path where your repository lays
@pathtoupdate = "/var/www/wordpress"
# puts @doc
# list all in the given path
@tags = %x[svn list #{@doc}]
# puts @tags
#split by CR
@ltags = @tags.split(/\n/)
# puts @ltags.last
#take the last available
@doc.concat(@ltags.last)
#upgrade to the latest revision
@upgrade = %x[svn sw #{@doc} #{@pathtoupdate}]
#puts @upgrade
To say is that this is also possible in Perl – i will post an update…