Setup script fixed to set other externals for non-qa projects
authorRoland Häder <roland@mxchange.org>
Wed, 9 Dec 2009 20:54:57 +0000 (20:54 +0000)
committerRoland Häder <roland@mxchange.org>
Wed, 9 Dec 2009 20:54:57 +0000 (20:54 +0000)
.gitattributes
application-external.txt [new file with mode: 0644]
setup-repos.sh

index 1c4f05a..04db7bb 100644 (file)
@@ -1,4 +1,5 @@
 * text=auto !eol
 * text=auto !eol
+/application-external.txt -text
 docs/COPYING -text
 docs/COPYING.documents -text
 docs/COPYING.software -text
 docs/COPYING -text
 docs/COPYING.documents -text
 docs/COPYING.software -text
diff --git a/application-external.txt b/application-external.txt
new file mode 100644 (file)
index 0000000..d21f5f8
--- /dev/null
@@ -0,0 +1,3 @@
+admin http://www.ship-simu.org/repos/admin/trunk/application/admin/ 
+install http://www.ship-simu.org/repos/install/trunk/application/install/ 
+qa http://www.ship-simu.org/repos/qa/trunk/application/qa/
index 41db15a..bd7820a 100755 (executable)
@@ -30,9 +30,12 @@ echo "$0: Linking to external 'core' repository ..."
 svn propset svn:externals -F ../../core/trunk/svn-externals.txt . || exit 255
 if (test "$1" != "admin" && test "$1" != "install"); then
        cd application/
 svn propset svn:externals -F ../../core/trunk/svn-externals.txt . || exit 255
 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/
-install http://www.ship-simu.org/repos/install/trunk/application/install/
-qa http://www.ship-simu.org/repos/qa/trunk/application/qa/" . || 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. ---"
        cd .. # trunk
 else
        echo "$0: --- Not setting admin external source. ---"