forked from alisw/alidist
-
Notifications
You must be signed in to change notification settings - Fork 0
/
control-core.sh
32 lines (30 loc) · 875 Bytes
/
control-core.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
package: Control-Core
version: "%(tag_basename)s"
tag: "v0.19.80"
build_requires:
- "GCC-Toolchain:(?!osx)"
- golang
- protobuf
- grpc
- alibuild-recipe-tools
source: https://github.com/AliceO2Group/Control
---
#!/bin/bash -e
export GOPATH=$PWD/go
export PATH=$GOPATH/bin:$PATH
export GO111MODULE=on
BUILD=$GOPATH/src/github.com/AliceO2Group/Control
mkdir -p $BUILD
rsync -a --delete $SOURCEDIR/ $BUILD/
pushd $BUILD
make vendor
make WHAT="o2control-core o2control-executor o2-aliecs-odc-shim"
mkdir -p $INSTALLROOT/bin
rsync -a --delete bin/ $INSTALLROOT/bin
# safely clean up vendor directory regardless of permissions
go clean -modcache
popd
#ModuleFile
mkdir -p etc/modulefiles
alibuild-generate-module --bin --lib > etc/modulefiles/$PKGNAME
mkdir -p $INSTALLROOT/etc/modulefiles && rsync -a --delete etc/modulefiles/ $INSTALLROOT/etc/modulefiles