echo "you said : [" $OperatingSystem "]"
echo
echo
+
+ # ------------------
+ echo "How many cores on your computer 2 (default is 2)"
+ read corenumber
+ if [ "$corenumber" = "" ]
+ then
+ generationdir="2"
+ fi
+ echo "you said : [" $corenumber "]"
+
+ echo
+ echo
# ------------------
echo "Name of the Generation Directory (default is /tmp/myGenerationDir)"
sourcesFrom="___"
while [[ "$sourcesFrom" != "CVS" && "$sourcesFrom" != "HTML" ]]
do
- echo "Where do you want to get source files from : CVS/HTML (default is CVS)"
+ echo "Where do you want to get source files from : CVS/HTML ( CVS : for registered CREATIS users only! )"
read sourcesFrom
if [ "$sourcesFrom" = "" ]
then
then
while [ "$cvsUserName" == "" ]
do
- echo "CVS User Name (mandatory!)"
+ echo "CVS User Name ( registered CREATIS user : mandatory!)"
read cvsUserName
done
echo "you said : [" $cvsUserName "]"
echo
echo "You said :"
echo " Operating System : $OperatingSystem"
+ echo " Number of Cores : $corenumber"
echo " Name of the Generation Directory : $generationdir"
echo " Install Prefix for Third Party Libraries : $installPrefixThird"
echo " Install Prefix for CreaTools : $installPrefix"
echo "#(except if you *do* know what you do)" >> $configureFile
echo >> $configureFile
echo "OperatingSystem=$OperatingSystem" >> $configureFile
+ echo "corenumber=$corenumber" >> $configureFile
echo "generationdir=$generationdir" >> $configureFile
echo "installPrefix=$installPrefix" >> $configureFile
echo "installPrefixThird=$installPrefixThird" >> $configureFile
echo $PWD/scripts/CreaTools-configure.sh
echo --generationdir--
echo $generationdir
+ echo --corenumber--
+ echo $corenumber
echo --docgeneration--
echo $docgeneration
echo --installPrefix--
then
bash $scriptDir/cmakemod.sh $creasource $generationdir $installPrefix $buildType
bash $scriptDir/creaVariables.sh $creasource $generationdir $docgeneration
- bash $scriptDir/compilemod.sh $buildType $creasource $generationdir
+ bash $scriptDir/compilemod.sh $buildType $creasource $generationdir $corenumber
bash $scriptDir/ctestmod.sh $creasource $generationdir
fi
fi
echo ========================================================= $bbtksource $generationdir $installPrefix $buildType
bash $scriptDir/cmakemod.sh $bbtksource $generationdir $installPrefix $buildType
bash $scriptDir/bbtkVariables.sh $bbtksource $generationdir $docgeneration $gdcmVersion
- bash $scriptDir/compilemod.sh $buildType $bbtksource $generationdir
+ bash $scriptDir/compilemod.sh $buildType $bbtksource $generationdir $corenumber
bash $scriptDir/ctestmod.sh $bbtksource $generationdir
fi
fi
# creaMaracasVisu
bash $scriptDir/cmakemod.sh $creamaracassource $generationdir $installPrefix $buildType
bash $scriptDir/creaMaracasVariables.sh $creamaracassource $generationdir $docgeneration
- bash $scriptDir/compilemod.sh $buildType $creamaracassource $generationdir
+ bash $scriptDir/compilemod.sh $buildType $creamaracassource $generationdir $corenumber
bash $scriptDir/ctestmod.sh $creamaracassource $generationdir
fi
fi
# creaEnvironment
bash $scriptDir/cmakemod.sh $creaenvironmentsource $generationdir $installPrefix $buildType
bash $scriptDir/creaenvironmentVariables.sh $creaenvironmentsource $generationdir $docgeneration
- bash $scriptDir/compilemod.sh $buildType $creaenvironmentsource $generationdir
+ bash $scriptDir/compilemod.sh $buildType $creaenvironmentsource $generationdir $corenumber
bash $scriptDir/ctestmod.sh $creaenvironmentsource $generationdir
fi
fi
# creaBruker
bash $scriptDir/cmakemod.sh $creabrukersource $generationdir $installPrefix $buildType
bash $scriptDir/creaBrukerVariables.sh $creabrukersource $generationdir $docgeneration $gdcmVersion
- bash $scriptDir/compilemod.sh $buildType $creabrukersource $generationdir
+ bash $scriptDir/compilemod.sh $buildType $creabrukersource $generationdir $corenumber
bash $scriptDir/ctestmod.sh $creabrukersource $generationdir
fi
fi
# creaImageIO
bash $scriptDir/cmakemod.sh $creaimagesource $generationdir $installPrefix $buildType
bash $scriptDir/creaImageIOVariables.sh $creaimagesource $generationdir $docgeneration $gdcmVersion
- bash $scriptDir/compilemod.sh $buildType $creaimagesource $generationdir
+ bash $scriptDir/compilemod.sh $buildType $creaimagesource $generationdir $corenumber
bash $scriptDir/ctestmod.sh $creaimagesource $generationdir
fi
fi
# creaContours
bash $scriptDir/cmakemod.sh $creacontourssource $generationdir $installPrefix $buildType
bash $scriptDir/creaContoursVariables.sh $creacontourssource $generationdir $docgeneration
- bash $scriptDir/compilemod.sh $buildType $creacontourssource $generationdir
+ bash $scriptDir/compilemod.sh $buildType $creacontourssource $generationdir $corenumber
bash $scriptDir/ctestmod.sh $creacontourssource $generationdir
fi
fi
then
bash $scriptDir/cmakemod.sh $crearigidregistrationssource $generationdir $installPrefix $buildType
bash $scriptDir/creaRigidRegistrationVariables.sh $crearigidregistrationssource $generationdir $docgeneration
- bash $scriptDir/compilemod.sh $buildType $crearigidregistrationssource $generationdir
+ bash $scriptDir/compilemod.sh $buildType $crearigidregistrationssource $generationdir $corenumber
bash $scriptDir/ctestmod.sh $crearigidregistrationssource $generationdir
fi
fi
# bbtkGEditor
bash $scriptDir/cmakemod.sh $bbtkgeditorsource $generationdir $installPrefix $buildType
bash $scriptDir/bbtkGEditorVariables.sh $bbtkgeditorsource $generationdir $docgeneration
- bash $scriptDir/compilemod.sh $buildType $bbtkgeditorsource $generationdir
+ bash $scriptDir/compilemod.sh $buildType $bbtkgeditorsource $generationdir $corenumber
bash $scriptDir/ctestmod.sh $bbtkgeditorsource $generationdir
fi
fi
# creaTools
bash $scriptDir/cmakemod.sh $creatoolssource $generationdir $installPrefix $buildType
bash $scriptDir/creaToolsVariables.sh $creatoolssource $generationdir $docgeneration
- bash $scriptDir/compilemod.sh $buildType $creatoolssource $generationdir
+ bash $scriptDir/compilemod.sh $buildType $creatoolssource $generationdir $corenumber
fi
fi
if [ true = true ]
then
# creaMiniTools
- bash $scriptDir/cmakemod.sh $creaminitoolssource $generationdir $installPrefix $buildType
+ bash $scriptDir/cmakemod.sh $creaminitoolssource $generationdir $installPrefix $buildType
bash $scriptDir/creaMiniToolsVariables.sh $creaminitoolssource $generationdir $docgeneration
- bash $scriptDir/compilemod.sh $buildType $creaminitoolssource $generationdir
+ bash $scriptDir/compilemod.sh $buildType $creaminitoolssource $generationdir $corenumber
fi
fi