Skip to content

Commit

Permalink
fix: rm unused env vars in setup.sh (#489)
Browse files Browse the repository at this point in the history
For a year now, we have not used the environment variables prefixed with
`JUGGLER_`, and for over 9 months we have not used the `BEAMLINE_`
variables. This finally removes them from the setup script.
  • Loading branch information
wdconinc authored Aug 4, 2023
1 parent 937617d commit 95cc9f9
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions templates/setup.sh.in
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,6 @@ export DETECTOR_PATH=@CMAKE_INSTALL_FULL_DATADIR@/@PROJECT_NAME@
export DETECTOR_CONFIG=@PROJECT_NAME@
export DETECTOR_VERSION=@GIT_BRANCH@

export BEAMLINE=@PROJECT_NAME@
export BEAMLINE_PATH=@CMAKE_INSTALL_FULL_DATADIR@/@PROJECT_NAME@
export BEAMLINE_CONFIG=@PROJECT_NAME@
export BEAMLINE_VERSION=@GIT_BRANCH@

## note: we will phase out the JUGGLER_* flavor of variables in the future
export JUGGLER_DETECTOR=$DETECTOR
export JUGGLER_DETECTOR_CONFIG=$DETECTOR_CONFIG
export JUGGLER_DETECTOR_VERSION=$DETECTOR_VERSION
export JUGGLER_DETECTOR_PATH=$DETECTOR_PATH

export JUGGLER_BEAMLINE=$BEAMLINE
export JUGGLER_BEAMLINE_CONFIG=$BEAMLINE_CONFIG
export JUGGLER_BEAMLINE_VERSION=$BEAMLINE_VERSION
export JUGGLER_BEAMLINE_PATH=$BEAMLINE_PATH

## Export detector libraries
if [[ "$(uname -s)" = "Darwin" ]] || [[ "$OSTYPE" == "darwin"* ]]; then
export DYLD_LIBRARY_PATH="@CMAKE_INSTALL_FULL_LIBDIR@${DYLD_LIBRARY_PATH:+:$DYLD_LIBRARY_PATH}"
Expand Down

0 comments on commit 95cc9f9

Please sign in to comment.