forked from FairRootGroup/FairSoft
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add scripst to install FairRoot, AliRoot, and DDS. These three packag…
…es are not installed when running configure.sh. If one want to install these packages one has to use the script alfaconfig.sh which will call configure.sh and will afterwards install the new packages. Add configuration option for ALFA which is needed for some error and debug output. The new stuff is documented in README.md.
- Loading branch information
Showing
10 changed files
with
343 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#!/bin/bash | ||
# | ||
# AlFa package installation script | ||
# m.al-turany@gsi.de, Sept. 2014 | ||
|
||
install_alfasoft=yes | ||
##################### FairSoft############################################# | ||
source configure.sh | ||
|
||
##################### FairRoot############################################# | ||
if [ "$check" = "1" ]; | ||
then | ||
source scripts/install_fairroot.sh | ||
fi | ||
##################### DDS ############################################# | ||
if [ "$check" = "1" ]; | ||
then | ||
source scripts/install_DDS.sh | ||
fi | ||
##################### AliRoot ############################################# | ||
if [ "$check" = "1" ]; | ||
then | ||
source scripts/install_aliroot.sh | ||
fi | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
#!/bin/bash | ||
|
||
|
||
if [ ! -d $SIMPATH/DDS ]; | ||
then | ||
cd $SIMPATH | ||
git clone $DDS_LOCATION | ||
fi | ||
|
||
install_prefix=$SIMPATH_INSTALL/DDS | ||
|
||
checkfile=$install_prefix/bin/dds-server | ||
|
||
if (not_there DDS $checkfile); | ||
then | ||
cd DDS | ||
git checkout $DDSVERSION | ||
if [ ! -d build_for_alfa ]; | ||
then | ||
mkdir build_for_alfa | ||
fi | ||
cd build_for_alfa | ||
BOOST_ROOT=$SIMPATH_INSTALL cmake -DCMAKE_INSTALL_PREFIX=install_prefix -C ../BuildSetup.cmake ../ | ||
$MAKE_command -j$number_of_processes wn_bin | ||
$MAKE_command -j$number_of_processes install | ||
|
||
fi | ||
|
||
cd $SIMPATH | ||
return 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
#!/bin/bash | ||
|
||
if [ ! -d $SIMPATH/AliRoot ]; | ||
then | ||
cd $SIMPATH | ||
git clone $ALIROOT_LOCATION | ||
fi | ||
|
||
install_prefix=$SIMPATH_INSTALL/AliRoot | ||
export GEANT3DIR=$SIMPATH_INSTALL/share/geant3 | ||
export ALICE_ROOT=$SIMPATH/AliRoot | ||
export ALICE_TARGET=`root-config --arch` | ||
|
||
export ROOTSYS=$SIMPATH_INSTALL | ||
|
||
|
||
checkfile=$install_prefix/lib/libSTEER.so | ||
|
||
if (not_there AliRoot $checkfile); | ||
then | ||
cd AliRoot | ||
git checkout $ALIROOTVERSION | ||
|
||
if [ ! -d build_for_alfa ]; | ||
then | ||
mkdir build_for_alfa | ||
fi | ||
cd build_for_alfa | ||
|
||
cmake -DCMAKE_INSTALL_PREFIX=$install_prefix -DGEANT3DIR=$SIMPATH_INSTALL -DGEANT3_INCLUDE_DIR=$SIMPATH_INSTALL/include/TGeant3 -DGEANT3_LIBRARY_DIR=SIMPATH_INSTALL/lib -DGEANT3_SYSTEM_DIR=$SIMPATH_INSTALL/share/geant3 -DZEROMQ_LIBRARY=$SIMPATH_INSTALL/lib -DZEROMQ_INCLUDE_DIR=$SIMPATH_INSTALL/include $ALICE_ROOT | ||
|
||
$MAKE_command -j$number_of_processes | ||
$MAKE_command install | ||
|
||
fi | ||
cd $SIMPATH | ||
return 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
#!/bin/bash | ||
|
||
if [ ! -d $SIMPATH/FairRoot ]; | ||
then | ||
cd $SIMPATH | ||
git clone $FAIRROOT_LOCATION | ||
fi | ||
|
||
install_prefix=$SIMPATH_INSTALL/FairRoot | ||
|
||
checkfile=$install_prefix/lib/libBase.so | ||
|
||
if (not_there FairRoot $checkfile); | ||
then | ||
cd FairRoot | ||
git checkout $FAIRROOTVERSION | ||
if [ ! -d build_for_alfa ]; | ||
then | ||
mkdir build_for_alfa | ||
fi | ||
cd build_for_alfa | ||
if [ "$onlyreco" = "0" ]; | ||
then | ||
SIMPATH=$SIMPATH_INSTALL cmake -DCMAKE_INSTALL_PREFIX=$install_prefix ../ | ||
else | ||
SIMPATH=$SIMPATH_INSTALL cmake -DCMAKE_INSTALL_PREFIX=$install_prefix -DRECO_ONLY=1 ../ | ||
fi | ||
$MAKE_command -j$number_of_processes | ||
$MAKE_command install | ||
|
||
fi | ||
cd $SIMPATH | ||
return 1 |
Oops, something went wrong.