Here is a sample of code that could be used. But those script are specific to the way that you want it to work. Basically LS execute the query given in the property file and add the name of the new repository for its creation or the old name and the new name in case of a rename.
CreateSVNRepositoryForLS.sh
#!/bin/shif [ $# -ne 2 ]; then
echo $0 svnparentpath svnrepository
exit 1
fisvnparentpath=$1
shiftif [ ! -d $svnparentpath ]; then
echo $svnparentpath is not a valid folder…
exit 2
fiif [ $1 != `basename $1` ]; then
echo $1 ambiguous repository name …
exit 3
fiif [ -e $svnparentpath/$1 ]; then
echo $svnparentpath/$1 already exist…
exit 4
fisu www-data -c "mkdir $svnparentpath/$1; svnadmin create $svnparentpath/$1"
#mkdir $svnparentpath/$1; svnadmin create $svnparentpath/$1if [ $? != 0 ]; then
echo problem during the svncreate phase
exit 5
fiexit 0
MoveSVNRepositoryForLS.sh
#!/bin/shif [ $# -ne 3 ]; then
echo $0 svnparentpath sourcesvnrepository ciblesvnrepository
exit 1
fisvnparentpath=$1
shiftif [ ! -d $svnparentpath ]; then
echo $svnparentpath is not a valid folder…
exit 2
fiif [ $1 != `basename $1` ]; then
echo $1 ambiguous repository name …
exit 3
fiif [ $2 != `basename $2` ]; then
echo $2 ambiguous repository name …
exit 4
fiif [ ! -d $svnparentpath/$1 ]; then
echo $svnparentpath/$1 is not a valid folder…
exit 5
fiif [ -e $svnparentpath/$2 ]; then
echo $svnparentpath/$2 already exist…
exit 6
fisu www-data -c "mv $svnparentpath/$1 $svnparentpath/$2"if [ $? != 0 ]; then
echo problem during the move phase
exit 7
fiexit 0