-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
2 additions
and
15 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,4 @@ | ||
#!/bin/bash | ||
|
||
# quit if geant4-config cannot be found | ||
if ! hash geant4-config 2>/dev/null; then | ||
echo Do not forget to source geant4.sh; exit | ||
fi | ||
|
||
# add gears directory to PATH | ||
export GEARS="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd)" | ||
export PATH=$GEARS/tutorials/detector/visualization:$GEARS:$PATH | ||
|
||
# print missing databases | ||
while read line; do | ||
database=`echo $line | awk '{print $2}'` | ||
if [ $database = "NOTFOUND" ]; then echo $line; fi | ||
done <<< "$(geant4-config --check-datasets)" | ||
|
||
GEARS="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd)" | ||
export PATH=$GEARS/tutorials/detector/visualization:$GEARS:$PATH |