build.sh revision 66ff7c11
1#!/bin/bash
2
3# Copyright (c) 2016 Open Platform for NFV Project, Inc. and its contributors
4#
5#    Licensed under the Apache License, Version 2.0 (the "License");
6#    you may not use this file except in compliance with the License.
7#    You may obtain a copy of the License at
8#
9#        http://www.apache.org/licenses/LICENSE-2.0
10#
11#    Unless required by applicable law or agreed to in writing, software
12#    distributed under the License is distributed on an "AS IS" BASIS,
13#    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14#    See the License for the specific language governing permissions and
15#    limitations under the License.
16set -e
17
18
19
20CLEAN=yes
21
22
23echo =============================17.11================================
24echo "Build DPDK RPM for 17.11 release"
25
26./build_dpdk_rpm.sh -g 17.11
27
28echo "Build DPDK SRPM for 17.11 release"
29
30./build_dpdk_rpm.sh -g 17.11 -s yes
31
32echo =============================18.02================================
33echo "Build DPDK RPM for 18.02 release"
34
35./build_dpdk_rpm.sh -g 18.02
36
37echo "Build DPDK SRPM for 18.02 release"
38
39./build_dpdk_rpm.sh -g 18.02 -s yes
40
41echo =============================18.05================================
42echo "Build DPDK RPM for 18.05 release"
43
44./build_dpdk_rpm.sh -g 18.05
45
46echo "Build DPDK SRPM for 18.05 release"
47
48./build_dpdk_rpm.sh -g 18.05 -s yes
49
50
51if [[ -z "${CLEAN##*y*}" ]]; then
52    echo =============================Clean up temporary directories================================
53    ./clean.sh
54fi
55
56
57exit 0
58