Fix for missing devscripts for deb_dpdk
[ci-management.git] / jjb / deb_dpdk / include-raw-deb_dpdk-build.sh
1 #!/bin/bash
2 # basic build script example
3 set -e -o pipefail
4 # do nothing but print the current slave hostname
5 hostname
6
7 echo "cat /etc/bootstrap.sha"
8 if [ -f /etc/bootstrap.sha ];then
9     cat /etc/bootstrap.sha
10 else
11     echo "Cannot find /etc/bootstrap.sha"
12 fi
13
14 echo "cat /etc/bootstrap-functions.sha"
15 if [ -f /etc/bootstrap-functions.sha ];then
16     cat /etc/bootstrap-functions.sha
17 else
18     echo "Cannot find /etc/bootstrap-functions.sha"
19 fi
20
21 echo "sha1sum of this script: ${0}"
22 sha1sum $0
23
24 MISSING_PKGS=$(dpkg-checkbuilddeps |& perl -pe 's/^.+://g; s/\(.*?\)//g')
25 sudo apt-get install -y ${MISSING_PKGS} devscripts
26 debuild -uc -us -j4
27
28 echo "*******************************************************************"
29 echo "* DEB_DPDK BUILD SUCCESSFULLY COMPLETED"
30 echo "*******************************************************************"