Skip to content

Commit

Permalink
Add AliRoot-OCDB optional package (#659)
Browse files Browse the repository at this point in the history
  • Loading branch information
dberzano authored and ktf committed Mar 22, 2017
1 parent 0003f3d commit 6f48b88
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions aliroot-ocdb.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
package: AliRoot-OCDB
source: https://gitlab.cern.ch/alisw/AliRootOCDB.git
version: "%(short_hash)s"
tag: master
---
#!/bin/bash -e
rsync -av --delete --exclude="**/.git" $SOURCEDIR/ $INSTALLROOT/
# Modulefile
MODULEDIR="$INSTALLROOT/etc/modulefiles"
MODULEFILE="$MODULEDIR/$PKGNAME"
mkdir -p "$MODULEDIR"
cat > "$MODULEFILE" <<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
# Our environment
setenv ALIROOT_OCDB_ROOT \$::env(BASEDIR)/$PKGNAME/\$version
EoF

0 comments on commit 6f48b88

Please sign in to comment.