Updated/fixed
authorRoland Häder <roland@mxchange.org>
Thu, 20 Nov 2008 02:10:15 +0000 (02:10 +0000)
committerRoland Häder <roland@mxchange.org>
Thu, 20 Nov 2008 02:10:15 +0000 (02:10 +0000)
setup-repos.sh

index 68f6a832f64d9d1ff985ad4538690a2126f8c07c..1fc49e5ace80371951960c9bd669f9d1dce07930 100755 (executable)
@@ -6,9 +6,27 @@ if test "$1" == ""; then
        exit
 fi
 
        exit
 fi
 
-svn co svn+ssh://www.mxchange.org/var/www/svn-repos/$1/
+echo "$0: Checking out $1 ..."
+svn co svn+ssh://www.mxchange.org/var/www/svn-repos/$1/ || exit 255
 cd $1
 cd $1
-svn mkdir branches tags trunk
-svn propset -F ../core/trunk/svn-externals.txt trunk
-svn commit -m "Initial import with linked core"
-cd
+echo "$0: Creating base directories ..."
+svn mkdir branches tags trunk || exit 255
+cd trunk
+echo "$0: Updating skeleton ..."
+svn up ../../skel/ || exit 255
+echo "$0: Importing skeleton repository ..."
+svn export --force ../../skel/trunk/ . || exit 255
+sh `which svn-add-all.sh`
+echo "$0: Adding directory application/$1 ..."
+svn mkdir application/$1 || exit 255
+echo "$0: Linking to external 'core' repository ..."
+svn propset svn:externals -F ../../core/trunk/svn-externals.txt . || exit 255
+cd .. # root
+echo "$0: Running commit ..."
+svn commit -m "Initial import with linked core from skeleton" || exit 255
+echo "$0: Updating ..."
+svn up
+echo "$0: Exporting repositiory ..."
+svn export --force trunk/ /var/www/htdocs/$1
+cd .. # start
+echo "$0: All done."