blob: ed698b4bb0f3c605da0f3ffef6e26353c1052e95 (
plain)
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
|
#!/bin/bash
#set -xe -o pipefail
echo "======================================"
echo executing $0
echo
# Check if we are running on Centos or Ubuntu
if [ -f /etc/lsb-release ];then
cat /etc/lsb-release
echo "======================================"
echo "Ubuntu version: "
. /etc/lsb-release
sudo apt-get install rpm
echo "Ubuntu is not supported for now."
exit 0
elif [ -f /etc/redhat-release ];then
echo "======================================"
echo "redhat release version: "
cat /etc/redhat-release
echo
fi
export BASE_DIR=$(dirname $0)/../rpm_dpdk
echo "======================================"
echo "BASE_DIR: ${BASE_DIR}"
echo
if [ -d ${BASE_DIR}/build ]; then
cd ${BASE_DIR}/build/
if [ -e build.sh ]; then
./build.sh
fi
fi
|