X-Git-Url: https://git.mxchange.org/?p=core.git;a=blobdiff_plain;f=setup-repos.sh;h=bd7820ab3c4b2700dfd7d17d94f5dc935fd47d62;hp=ad263a37b15ca9a36509c04480f0af9e7221bf1f;hb=f5d2bb90f6b9be6f6fed44bd5d9c4a67c56768ae;hpb=880e004fd262bf063ad7bf165014ce233cc80dc4 diff --git a/setup-repos.sh b/setup-repos.sh index ad263a37..bd7820ab 100755 --- a/setup-repos.sh +++ b/setup-repos.sh @@ -4,6 +4,9 @@ if test "$1" == ""; then echo "Usage: $0 Setup given repository locally." exit +elif test -e "$1/.svn/"; then + echo "$0: Repository $1 is possibly setup! Aborting..." + exit fi echo "$0: Checking out $1 ..." @@ -16,7 +19,7 @@ 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` +svn add * || exit 255 if test "$1" != "admin"; then echo "$0: Adding directory application/$1 ..." svn mkdir application/$1 || exit 255 @@ -25,9 +28,14 @@ else 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 +if (test "$1" != "admin" && test "$1" != "install"); then cd application/ - svn propset svn:externals "admin http://www.ship-simu.org/repos/admin/trunk/application/admin/" . || exit 255 + if test "$1" != "qa"; then + svn propset svn:externals -F ../../../core/trunk/application-external.txt . || exit 255 + else + svn propset svn:externals "admin http://www.ship-simu.org/repos/admin/trunk/application/admin/ +install http://www.ship-simu.org/repos/install/trunk/application/install/" . || exit 255 + fi cd .. # trunk else echo "$0: --- Not setting admin external source. ---"