2 # basic build script example
4 # do nothing but print the current slave hostname
7 echo "cat /etc/bootstrap.sha"
8 if [ -f /etc/bootstrap.sha ];then
11 echo "Cannot find /etc/bootstrap.sha"
14 echo "cat /etc/bootstrap-functions.sha"
15 if [ -f /etc/bootstrap-functions.sha ];then
16 cat /etc/bootstrap-functions.sha
18 echo "Cannot find /etc/bootstrap-functions.sha"
21 echo "sha1sum of this script: ${0}"
24 MISSING_PKGS=$(dpkg-checkbuilddeps |& perl -pe 's/^.+://g; s/\(.*?\)//g')
27 sudo apt-get install -y ${MISSING_PKGS} devscripts pristine-tar
29 pkg_version=$(dpkg-parsechangelog --show-field Version)
30 orig_version=$(echo ${pkg_version} | sed s'/-.*//')
31 orig_tarball="dpdk_${orig_version}.orig.tar.gz"
32 pristine-tar checkout ${orig_tarball}
37 # No fail on lintian errors
39 lintian --info --no-tag-display-limit "dpdk_${pkg_version}_source.changes"
41 echo "*******************************************************************"
42 echo "* DEB_DPDK BUILD SUCCESSFULLY COMPLETED"
43 echo "*******************************************************************"