forked from dyninst/mrnet
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathrunBuildPackage.sh
37 lines (30 loc) · 1.05 KB
/
runBuildPackage.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
#!/bin/bash
#
# runBuildPackage.sh - Package steps for mrnet
#
# Copyright 2021 Hewlett Packard Enterprise Development LP.
#
# Unpublished Proprietary Information.
# This unpublished work is protected to trade secret, copyright and other laws.
# Except as permitted by contract or express written permission of Hewlett Packard Enterprise Development LP.,
# no part of this work or its content may be used, reproduced or disclosed
# in any form.
#
source ./external/cdst_build_library/build_lib
setup_modules
module load cray-cdst-support
check_exit_status
module load cray-cti-devel
check_exit_status
echo "############################################"
echo "# Creating rpm #"
echo "############################################"
rpmbuilddir="$PWD/rpmbuild"
cd ${rpmbuilddir}
check_exit_status
rpmbuild -bb -D "_topdir ${rpmbuilddir}" SPECS/mrnet.spec
check_exit_status
echo "############################################"
echo "# Done with packaging #"
echo "############################################"
exit_with_status