forked from geopm/geopm
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.sh
More file actions
executable file
·53 lines (43 loc) · 915 Bytes
/
package.sh
File metadata and controls
executable file
·53 lines (43 loc) · 915 Bytes
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
42
43
44
45
46
47
48
49
50
51
52
53
#!/bin/bash
# Copyright (c) 2015 - 2025 Intel Corporation
# SPDX-License-Identifier: BSD-3-Clause
#
# Creates all of the RPM or Debian packages in the repository
# Set GEOPM_PACKGE_SKIP_RUNTIME to build only the GEOPM Access Service packages.
#
# All command line arguments are forwarded to the configure calls used to create
# source archives.
if grep -i ubuntu /etc/os-release || grep -i debian /etc/os-release; then
pkg=deb
else
pkg=rpm
fi
set -e
cd libgeopmd
./autogen.sh
./configure $@
make $pkg
cd -
cd geopmdpy
./make_$pkg.sh
cd -
if which cargo >& /dev/null; then
cd geopmdrs
./build.sh
cd -
else
echo "Install rust to enable grpc features" 1>&2
fi
cd docs
./make_$pkg.sh
cd -
if [ -z "$GEOPM_PACKAGE_SKIP_RUNTIME" ]; then
cd libgeopm
./autogen.sh
./configure $@ --disable-mpi --disable-openmp
make $pkg
cd -
cd geopmpy
./make_$pkg.sh
cd -
fi