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 = GIT ] ; then
- echo " GIT User Name : $gitUserName"
- fi
echo " Login User Name : $loginUserName"
echo " Login Group Name : $loginGroupName"
echo " Build type : $buildType"
docgeneration=OFF
sourcesFrom=HTML
-gitUserName=
loginUserName=$USER
loginGroupName=`groups | awk '{print $1}'`
buildType=RelWithDebug
echo ""
echo ""
echo " command:"
- echo " all : configure / compile / install"
- echo " "
+ echo ""
+ echo " as a normal user:"
echo " config : set the configuration parameters only"
echo " "
+ echo " as root:"
echo " 3rd : Get, Compile, Install all 3rd party library "
echo " 3rd-base : Install basic tools (cmake, doxygen...)"
echo " 3rd-vtk : Get, Compile, Install vtk"
echo " 3rd-gdcm : Get, Compile, Install gdcm"
echo " 3rd-wx : Get, Compile, Install wx widget (for Mac Users)"
echo " "
+ echo " as a normal user:"
echo " creatools : Get Compile and Install the CreaTools"
echo " creatools-get : Get the CreaTools"
echo " creatools-cmp : Compile the CreaTools"
echo " printconfig : print the configuration"
echo " help : print help"
echo " env : print some environnement variables"
+ echo ""
+ echo " all : configure / compile / install"
+ echo " "
echo " "
echo " "
echo " "
echo " -gdir <dir> : generation directory (default $generationdir)"
echo " -instprefix <dir> : creatools install prefix"
echo " -instprefix3 <dir> : 3rd party library install prefix"
- echo " -git <gitusername> : get creatools from git (CREATIS user only)"
+ echo " -git : get creatools from git (CREATIS user only)"
+ echo " -git-read-only : get creatools from git (anonymously, no write access)"
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;;
- -git) sourcesFrom=GIT; gitUserName=$2; shift 2;;
+ -git) sourcesFrom=GIT; shift 1;;
+ -git-read-only) sourcesFrom=GIT-READ-ONLY;
+shift 1;;
-gdcm2) gdcmVersion=GDCM2; shift 1;;
-itk4) ITKVersion=ITK4; shift 1;;
-build) buildType=$2; shift 2;;
echo "installPrefixThird=$installPrefixThird" >> $configureFile
echo "docgeneration=$docgeneration" >> $configureFile
echo "sourcesFrom=$sourcesFrom" >> $configureFile
- echo "gitUserName=$gitUserName" >> $configureFile
echo "loginUserName=$loginUserName" >> $configureFile
echo "loginGroupName=$loginGroupName" >> $configureFile
echo "buildType=$buildType" >> $configureFile