forked from alisw/alidist
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patho2dpg.sh
26 lines (24 loc) · 881 Bytes
/
o2dpg.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
package: O2DPG
version: "%(tag_basename)s"
tag: "nightly-20230314"
source: https://github.com/AliceO2Group/O2DPG.git
build_requires:
- alibuild-recipe-tools
incremental_recipe: |
rsync -a --exclude='**/.git' --delete --delete-excluded \
$SOURCEDIR/ $INSTALLROOT/
mkdir -p $INSTALLROOT/etc/modulefiles && rsync -a --delete etc/modulefiles/ $INSTALLROOT/etc/modulefiles
---
#!/bin/bash -e
rsync -a --exclude='**/.git' --delete --delete-excluded \
$SOURCEDIR/ $INSTALLROOT/
# Modulefile
mkdir -p etc/modulefiles
alibuild-generate-module --bin > etc/modulefiles/$PKGNAME
cat << EOF >> etc/modulefiles/$PKGNAME
set O2DPG_ROOT \$::env(BASEDIR)/$PKGNAME/\$version
setenv O2DPG_ROOT \$O2DPG_ROOT
setenv O2DPG_RELEASE \$version
setenv O2DPG_VERSION $PKGVERSION
EOF
mkdir -p $INSTALLROOT/etc/modulefiles && rsync -a --delete etc/modulefiles/ $INSTALLROOT/etc/modulefiles