Not forget to run your ssh key with puttyAgent
-All the creatools projects are downloaded from the CVS, compiled and the CTest for the dashboard is run.
+All the creatools projects are downloaded from the GIT repository, compiled and the CTest for the dashboard is run.
MikTex
Putty
Graphviz
- TortoiseCVS
+ TortoiseGIT
NSIS
cmake (outside of "Programs Files")
crea_ThirdParty_Libraries (outside of "Programs Files")
set creatoolsGeneration=<directory where you want to generate>
set installPrefix=%creatoolsGeneration%\creatools_install
set buildType=<Debug|Release>
-set cvsUser=<USER>
+set gitUser=<USER>
set docGeneration=<OFF|ON> let it to OFF!
::Set the following line ON if you want to force x86 compilation
set forcex86=OFF
cd scripts
-call All.bat %creatoolsGeneration% %docGeneration% %cvsUser% %installPrefix% %buildType% %forcex86%
+call All.bat %creatoolsGeneration% %docGeneration% %gitUser% %installPrefix% %buildType% %forcex86%
cd ..
pause
exit
set creatoolsGeneration=%1
set docgeneration=%2
-set cvsUser=%3
+set gitUser=%3
set installPrefix=%4
set buildtype=%5
set forcex86=%6
# to configure only
./installscript -gdir $HOME/work/creatools/creainstall config
or
-./installscript -cvs sdika -ncore 4 -gdir $HOME/work/creatools/creainstall config
+./installscript -git sdika -ncore 4 -gdir $HOME/work/creatools/creainstall config
# to configure / compile-install all packages and the creatools themselves
-./installscript -cvs sdika -ncore 4 -gdir $HOME/work/creatools/creainstall all
+./installscript -git sdika -ncore 4 -gdir $HOME/work/creatools/creainstall all
# compile-install only one part (vtk for example) ONCE CONFIG HAS BEEN RUN
./installscript 3rd-vtk
Install Third Party Libraries :....1 (as root)
Get and Install the 'CreaTools':...2
or
- Get the 'CreaTools' source files :.2.1 (CVS : as user!)
+ Get the 'CreaTools' source files :.2.1 (GIT : as user!)
Compile the CreaTools :..........2.2
Install the CreaTools :..........2.3
"Number of Cores"
"Name of the Generation Directory"
"Boolean for Doc Generation : YES/NO"
-"Where do you want to get source files from : CVS/HTML"
+"Where do you want to get source files from : GIT/HTML"
--> if you chose CVS:
+-> if you chose GIT:
1/ you must have shared your public key on CREATIS server
-2/ you have to set properly the CVSROOT environment variable
-(see https://www.creatis.insa-lyon.fr/mywiki/Utiliser_CVS_avec_la_ligne_de_commande)
-"CVS User name"
+"GIT User name"
"Login 'User' name"
"Login 'Group' name"
"Build type : Release/Debug"
echo " Install Prefix for CreaTools : $installPrefix"
echo " Boolean for Doc Generation : $docgeneration"
echo " Where do you want to get source files from : $sourcesFrom"
- if [ $sourcesFrom = CVS ] ; then
- echo " CVS User Name : $cvsUserName"
+ if [ $sourcesFrom = GIT ] ; then
+ echo " GIT User Name : $gitUserName"
fi
echo " Login User Name : $loginUserName"
echo " Login Group Name : $loginGroupName"
docgeneration=OFF
sourcesFrom=HTML
-cvsUserName=
+gitUserName=
loginUserName=$USER
loginGroupName=`groups | awk '{print $1}'`
buildType=RelWithDebug
function usage {
- echo "installscript [options] command"
+ echo "menu.sh [options] command"
echo "creatools configure/compile/install script"
echo ""
echo ""
echo " -gdir <dir> : generation directory (default $generationdir)"
echo " -instprefix <dir> : creatools install prefix"
echo " -instprefix3 <dir> : 3rd party library install prefix"
- echo " -cvs <cvsusername> : get creatools from cvs (CREATIS user only)"
+ echo " -git <gitusername> : get creatools from git (CREATIS user only)"
echo " -build : build type Release, RelWithDebug or Debug (default RelWithDebug)"
echo ""
echo " experimental configure options (use at your own risk!!):"
-instprefix) installPrefix=$2; shift 2;;
-instprefix3) installPrefixThird=$2; shift 2;;
-doc) docgeneration=ON; shift 1;;
- -cvs) sourcesFrom=CVS; cvsUserName=$2; shift 2;;
+ -git) sourcesFrom=GIT; gitUserName=$2; shift 2;;
-gdcm2) gdcmVersion=GDCM2; shift 1;;
-itk4) ITKVersion=ITK4; shift 1;;
-build) buildType=$2; shift 2;;
if [ `checkVal $command config all` == true ] ; then
echo "#!/bin/bash" > $configureFile
echo >> $configureFile
- echo "#File generated by 'installscript'" >> $configureFile
+ echo "#File generated by 'menu.sh'" >> $configureFile
echo "#DO NOT edit !" >> $configureFile
echo "#(except if you *do* know what you do)" >> $configureFile
echo >> $configureFile
echo "installPrefixThird=$installPrefixThird" >> $configureFile
echo "docgeneration=$docgeneration" >> $configureFile
echo "sourcesFrom=$sourcesFrom" >> $configureFile
- echo "cvsUserName=$cvsUserName" >> $configureFile
+ echo "gitUserName=$gitUserName" >> $configureFile
echo "loginUserName=$loginUserName" >> $configureFile
echo "loginGroupName=$loginGroupName" >> $configureFile
echo "buildType=$buildType" >> $configureFile
if [ $expanded = "YES" ]
then
- echo " Get the 'CreaTools' source files :.2.1 (CVS : as user!)"
+ echo " Get the 'CreaTools' source files :.2.1 (GIT : as user!)"
echo " Compile the CreaTools :..........2.2"
# Install creatools as user (no longer as root) // JPR 2/5/2011
echo " Install the CreaTools :..........2.3"
# ------------------
sourcesFrom="___"
- while [[ "$sourcesFrom" != "CVS" && "$sourcesFrom" != "HTML" ]]
+ while [[ "$sourcesFrom" != "GIT" && "$sourcesFrom" != "HTML" ]]
do
- echo "Where do you want to get source files from : CVS/HTML ( CVS : for registered CREATIS users only! )"
+ echo "Where do you want to get source files from : GIT/HTML ( GIT : for registered CREATIS users only! )"
read sourcesFrom
if [ "$sourcesFrom" = "" ]
then
- sourcesFrom="CVS"
+ sourcesFrom="GIT"
fi
echo "you said : [" $sourcesFrom "]"
done
echo
# ------------------
- cvsUserName=""
- if [ "$sourcesFrom" = "CVS" ]
+ gitUserName=""
+ if [ "$sourcesFrom" = "GIT" ]
then
- while [ "$cvsUserName" == "" ]
+ while [ "$gitUserName" == "" ]
do
- echo "CVS User Name ( registered CREATIS user : mandatory!)"
- read cvsUserName
+ echo "GIT User Name ( registered CREATIS user : mandatory!)"
+ read gitUserName
done
- echo "you said : [" $cvsUserName "]"
+ echo "you said : [" $gitUserName "]"
else
- cvsUserName="ForgetThisOne"
+ gitUserName="ForgetThisOne"
fi
echo
echo
echo " Install Prefix for CreaTools : $installPrefix"
echo " Boolean for Doc Generation : $docgeneration"
echo " Where do you want to get source files from : $sourcesFrom"
- if [ $sourcesFrom = CVS ]
+ if [ $sourcesFrom = GIT ]
then
- echo " CVS User Name : $cvsUserName"
+ echo " GIT User Name : $gitUserName"
fi
echo " Login User Name : $loginUserName"
echo " Login Group Name : $loginGroupName"
echo "installPrefixThird=$installPrefixThird" >> $configureFile
echo "docgeneration=$docgeneration" >> $configureFile
echo "sourcesFrom=$sourcesFrom" >> $configureFile
- echo "cvsUserName=$cvsUserName" >> $configureFile
+ echo "gitUserName=$gitUserName" >> $configureFile
echo "loginUserName=$loginUserName" >> $configureFile
echo "loginGroupName=$loginGroupName" >> $configureFile
echo "buildType=$buildType" >> $configureFile
bash scripts/ThirdParty-install.sh
bash scripts/ThirdParty-install-Finalize.sh
- if [ "$sourcesFrom" = "CVS" ]
+ if [ "$sourcesFrom" = "GIT" ]
then
echo "----------------------------------------------------------------------"
echo OK
#if [ true = false ]
then
#
- if [ $sourcesFrom = CVS ]
+ if [ $sourcesFrom = GIT ]
then
- bash $scriptDir/cvscheckout.sh $creasource $generationdir $cvsUserName
- bash $scriptDir/cvscheckout.sh $bbtksource $generationdir $cvsUserName
- bash $scriptDir/cvscheckout.sh $creamaracassource $generationdir $cvsUserName
- bash $scriptDir/cvscheckout.sh $creaenvironmentsource $generationdir $cvsUserName
- bash $scriptDir/cvscheckout.sh $creabrukersource $generationdir $cvsUserName
- bash $scriptDir/cvscheckout.sh $creaimagesource $generationdir $cvsUserName
- bash $scriptDir/cvscheckout.sh $creacontourssource $generationdir $cvsUserName
- bash $scriptDir/cvscheckout.sh $crearigidregistrationssource $generationdir $cvsUserName
- bash $scriptDir/cvscheckout.sh $bbtkgeditorsource $generationdir $cvsUserName
- bash $scriptDir/cvscheckout.sh $creatoolssource $generationdir $cvsUserName
- bash $scriptDir/cvscheckout.sh $creaminitoolssource $generationdir $cvsUserName
+ bash $scriptDir/gitclone.sh $creasource $generationdir $gitUserName
+ bash $scriptDir/gitclone.sh $bbtksource $generationdir $gitUserName
+ bash $scriptDir/gitclone.sh $creamaracassource $generationdir $gitUserName
+ bash $scriptDir/gitclone.sh $creaenvironmentsource $generationdir $gitUserName
+ bash $scriptDir/gitclone.sh $creabrukersource $generationdir $gitUserName
+ bash $scriptDir/gitclone.sh $creaimagesource $generationdir $gitUserName
+ bash $scriptDir/gitclone.sh $creacontourssource $generationdir $gitUserName
+ bash $scriptDir/gitclone.sh $crearigidregistrationssource $generationdir $gitUserName
+ bash $scriptDir/gitclone.sh $bbtkgeditorsource $generationdir $gitUserName
+ bash $scriptDir/gitclone.sh $creatoolssource $generationdir $gitUserName
+ bash $scriptDir/gitclone.sh $creaminitoolssource $generationdir $gitUserName
# bash $scriptDir/cvscheckout.sh $libidosource-ESRF $generationdir $cvsUserName
# mv $libidosource-ESRF $libidosource
fi
#allow debugger to choose the startpoint
# start_point : used at debug time : start point of the script
# ex : if everything is OK, but bbtkGEditor,
-# cvs upate bbtkGEditor manually, and use :
+# git pull bbtkGEditor manually, and use :
# start_point=10
-# in order not to 'cvs checkout' everything, nor recompile everything.
+# in order not to 'git clone' everything, nor recompile everything.
start_point=0
urpmi lib64wxgtk2.8-devel
urpmi libwxgtk2.8-devel
urpmi gcc-c++
- urpmi cvs
+ urpmi git
urpmi rpm-build
;;
yum install gcc -y
yum install gcc-c++ -y
yum install xerces-c-devel -y
- yum install cvs -y
+ yum install git -y
yum install qtwebkit-devel -y
;;
;;
MacOS)
port selfupdate
-
port install cmake -y
- port install graphviz -y
port install doxygen -y
+ port install graphviz -y
# port install tetex -y (replaced by texlive) # cf EED : http://www.creatis.insa-lyon.fr/site/fr/CreatoolsInstallInstructionsv2.0.1MacOsv10.5.6-Developpers
port install texlive -y
port install latex2html -y
--- /dev/null
+#$1 creasource
+#$2 generationdir
+#$3 gitUserName
+
+
+cd $2/creatools_source
+git clone ssh://gitolite@git.creatis.insa-lyon.fr/$1
+cd ..
+
Have a look at :
http://www.creatis.insa-lyon.fr/site/fr/CreatoolsDownload
-Change your CVS user in the file All.bat
+Change your GIT user in the file All.bat
Copy all the .bat files into one directoy where the tests are going to be run
execute All.bat
Do not forget to run your ssh key with puttyAgent
-All the creatools projects are downloaded from the CVS, compiled and the CTest for the dashboard is run.
+All the creatools projects are downloaded from the GIT, compiled and the CTest for the dashboard is run.
creaToolsTools
Version 1.0.0
(c) CREATIS 2012
+