Skip to content

Commit

Permalink
gsl-config fix for old releases where GSL/BASE/bin is not added in to…
Browse files Browse the repository at this point in the history
… PATH
  • Loading branch information
smuzaffar committed Sep 21, 2023
1 parent bddc90f commit 2bfaf3c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions etc/scramrc/SCRAM/hooks/runtime/99-gsl-config.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/bash
GSL_tool="${LOCALTOP}/config/toolbox/${SCRAM_ARCH}/tools/selected/gsl.xml"
[ -e "${GSL_tool}" ] || exit 0
! grep -q 'name="PATH"' "${GSL_tool}" || exit 0
[ -z "${SCRAM}" ] && SCRAM=scram
GSL_BASE=$(${SCRAM} tool tag gsl GSL_BASE)
[ -e "${GSL_BASE}/bin/gsl-config" ] || exit 0
echo "RUNTIME:path:append:PATH=${GSL_BASE}/bin"

0 comments on commit 2bfaf3c

Please sign in to comment.