X-Git-Url: https://git.mxchange.org/?p=core.git;a=blobdiff_plain;f=setup-repos.sh;h=ad263a37b15ca9a36509c04480f0af9e7221bf1f;hp=1fc49e5ace80371951960c9bd669f9d1dce07930;hb=20ca147c7a33274b50aedb653a82ff30817655d7;hpb=d13eff05fc60769f140842532b47912235527a00 diff --git a/setup-repos.sh b/setup-repos.sh index 1fc49e5a..ad263a37 100755 --- a/setup-repos.sh +++ b/setup-repos.sh @@ -17,10 +17,21 @@ 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 +if test "$1" != "admin"; then + echo "$0: Adding directory application/$1 ..." + svn mkdir application/$1 || exit 255 +else + echo "$0: --- Not creating directory application/$1. ---" +fi echo "$0: Linking to external 'core' repository ..." svn propset svn:externals -F ../../core/trunk/svn-externals.txt . || exit 255 +if test "$1" != "admin"; then + cd application/ + svn propset svn:externals "admin http://www.ship-simu.org/repos/admin/trunk/application/admin/" . || exit 255 + cd .. # trunk +else + echo "$0: --- Not setting admin external source. ---" +fi cd .. # root echo "$0: Running commit ..." svn commit -m "Initial import with linked core from skeleton" || exit 255