#$1 creasource
#$2 generationdir
+#$3 sourcesFrom (either GIT or GIT-READ-ONLY)
-
cd $2/creatools_source
+
+if [ $sourcesFrom = GIT ]
+then
git clone ssh://gitolite@git.creatis.insa-lyon.fr/$1
+
+else # $sourcesFrom = GIT-READ-ONLY , anonymous access
+git clone git://git.creatis.insa-lyon.fr/$1
+
+fi
+
cd ..