Skip to content

Commit

Permalink
Merge pull request #40 from jlingema/master
Browse files Browse the repository at this point in the history
Update documentation, add DAG checks in init script
  • Loading branch information
vvolkl authored Mar 20, 2017
2 parents b33f590 + 0765dbe commit 9ad57b9
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 9 deletions.
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,19 @@ On Mac OS or Ubuntu, you need to install the following software.

https://github.com/HEP-FCC/podio

### Directed Acyclic Graph

https://github.com/HEP-FCC/dag


Setting up
--

Before compiling or using:

1. If on Mac OS, Ubuntu or using a custom PODIO installation, set up the PODIO environment.
1. If on Mac OS, Ubuntu or using a custom installations:
- set up the PODIO environment (sourcing the PODIO `init.sh`)
- set up the dag environment (set the FCCDAG environment variable to the install directory)

2. Set up the FCC-EDM environment:
```
Expand Down
25 changes: 17 additions & 8 deletions init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,27 @@ fi
if [[ "$unamestr" == 'Linux' ]]; then
platform='Linux'
if [[ -d /cvmfs/fcc.cern.ch/sw ]] ; then
#should check domain to make sure we're at CERN
#or is this software available somewhere in Lyon?
source /cvmfs/fcc.cern.ch/sw/0.8/init_fcc_stack.sh
#should check domain to make sure we're at CERN
#or is this software available somewhere in Lyon?
source /cvmfs/fcc.cern.ch/sw/0.8/init_fcc_stack.sh
else
if [ -z "$PODIO" ]; then
echo "[ERROR] no podio setup detected, make sure it is setup"
exit 1
if [ ! -z "$PODIO" ]; then
export LD_LIBRARY_PATH=$FCCEDM/lib:$PODIO/lib:$LD_LIBRARY_PATH
fi
export LD_LIBRARY_PATH=$FCCEDM/lib:$PODIO/lib:$LD_LIBRARY_PATH
fi
elif [[ "$unamestr" == 'Darwin' ]]; then
platform='Darwin'
export DYLD_LIBRARY_PATH=$FCCEDM/lib:$DYLD_LIBRARY_PATH:$PODIO/lib
if [ ! -z "$PODIO" ]; then
export DYLD_LIBRARY_PATH=$FCCEDM/lib:$DYLD_LIBRARY_PATH:$PODIO/lib
fi
fi
if [ -z "$PODIO" ]; then
echo "[ERROR] no podio setup detected, make sure it is setup"
exit 1
fi
if [ -z "$FCCDAG" ]; then
echo "[ERROR] no dag setup detected, make sure it is setup by setting the FCCDAG environment variable or adding it to your cmake prefix path"
exit 1
fi

echo platform detected: $platform

0 comments on commit 9ad57b9

Please sign in to comment.