Skip to content

Commit

Permalink
Automatised module creation in STARlight recipe. (#5467)
Browse files Browse the repository at this point in the history
  • Loading branch information
jackal1-66 committed May 14, 2024
1 parent 8a3ccc1 commit ceb1411
Showing 1 changed file with 1 addition and 18 deletions.
19 changes: 1 addition & 18 deletions starlight.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,22 +31,5 @@ chmod +x $INSTALLROOT/bin/starlight-config

#ModuleFile
mkdir -p etc/modulefiles
cat > etc/modulefiles/$PKGNAME <<EoF
#%Module1.0
proc ModulesHelp { } {
global version
puts stderr "ALICE Modulefile for $PKGNAME $PKGVERSION-@@PKGREVISION@$PKGHASH@@"
}
set version $PKGVERSION-@@PKGREVISION@$PKGHASH@@
module-whatis "ALICE Modulefile for $PKGNAME $PKGVERSION-@@PKGREVISION@$PKGHASH@@"
# Dependencies
module load BASE/1.0
# STARlight environment:
set STARLIGHT_ROOT \$::env(BASEDIR)/$PKGNAME/\$version
prepend-path PATH \$STARLIGHT_ROOT/bin
prepend-path LD_LIBRARY_PATH \$STARLIGHT_ROOT/lib
EoF
alibuild-generate-module --bin --lib > etc/modulefiles/$PKGNAME
mkdir -p $INSTALLROOT/etc/modulefiles && rsync -a --delete etc/modulefiles/ $INSTALLROOT/etc/modulefiles

0 comments on commit ceb1411

Please sign in to comment.