forked from GenFit/GenFit
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakeEnv.sh
More file actions
executable file
·22 lines (20 loc) · 791 Bytes
/
makeEnv.sh
File metadata and controls
executable file
·22 lines (20 loc) · 791 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/bash
ENVFILE=env.sh
if [ -z $GENFIT ]; then
echo "define the GENFIT env variable before executing this script"
else
echo "if [ -z \$ROOTSYS ]; then" > $ENVFILE
echo "echo \"ROOTSYS is not set. Check your ROOT installation.\"" >> $ENVFILE
echo "else" >> $ENVFILE
echo "export GENFIT=$GENFIT" >> $ENVFILE
echo "if [ \`root-config --arch\` = macosx ]; then" >>$ENVFILE
echo "export DYLD_LIBRARY_PATH=\$DYLD_LIBRARY_PATH:\$GENFIT/lib" >>$ENVFILE
echo "export LD_LIBRARY_PATH=\$LD_LIBRARY_PATH:\$GENFIT/lib" >>$ENVFILE
echo "else" >>$ENVFILE
echo "export LD_LIBRARY_PATH=\$LD_LIBRARY_PATH:\$GENFIT/lib" >>$ENVFILE
echo "fi" >>$ENVFILE
echo "fi" >> $ENVFILE
if [ $RAVEPATH ]; then
echo "export RAVEPATH=$RAVEPATH" >> $ENVFILE
fi
fi