Skip to content

Commit

Permalink
feat(qadb): prepend PATH for dev version
Browse files Browse the repository at this point in the history
The QADB will soon have a script `qadb-info`, to help make accessing the
QADB simpler. I only want `bin/` to be in `PATH` for:
- `dev`
- versions _after_ 3.0.0

See JeffersonLab/clas12-qadb#68
  • Loading branch information
c-dilks committed Jan 16, 2025
1 parent 59320d4 commit 513fe51
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 3 deletions.
1 change: 1 addition & 0 deletions modulefiles/qadb/.generic
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@ set version [file tail [module-info version [module-info name]]]
source [file dirname $ModulesCurrentModulefile]/../util/functions.tcl

setenv QADB [home]/noarch/clas12-qadb/$version
prepend-path PATH $env(QADB)/bin
prepend-path JYPATH $env(QADB)/src

11 changes: 11 additions & 0 deletions modulefiles/qadb/.generic_no_bin
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#%Module1.0

module-whatis https://github.com/jeffersonlab/clas12-qadb

set version [file tail [module-info version [module-info name]]]

source [file dirname $ModulesCurrentModulefile]/../util/functions.tcl

setenv QADB [home]/noarch/clas12-qadb/$version
prepend-path JYPATH $env(QADB)/src

2 changes: 1 addition & 1 deletion modulefiles/qadb/1.3.0
2 changes: 1 addition & 1 deletion modulefiles/qadb/2.0.0
2 changes: 1 addition & 1 deletion modulefiles/qadb/3.0.0

0 comments on commit 513fe51

Please sign in to comment.