forked from alisw/alidist
-
Notifications
You must be signed in to change notification settings - Fork 0
/
aligenerators.sh
41 lines (40 loc) · 1009 Bytes
/
aligenerators.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
package: AliGenerators
version: "v%(year)s%(month)s%(day)s%(defaults_upper)s"
requires:
- CRMC
- EPOS
- JEWEL
- POWHEG
- pythia
- pythia6
- SHERPA
- ThePEG
- AGILe
- Sacrifice
build_requires:
- EPOS-test
- ThePEG-test
---
#!/bin/bash -ex
# 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 \
CRMC/$CRMC_VERSION-$CRMC_REVISION \
JEWEL/$JEWEL_VERSION-$JEWEL_REVISION \
POWHEG/$POWHEG_VERSION-$POWHEG_REVISION \
pythia/$PYTHIA_VERSION-$PYTHIA_REVISION \
pythia6/$PYTHIA6_VERSION-$PYTHIA6_REVISION \
SHERPA/$SHERPA_VERSION-$SHERPA_REVISION \
ThePEG/$THEPEG_VERSION-$THEPEG_REVISION
EoF