5 # print the current slave hostname
8 for hashfile in bootstrap.sha bootstrap-functions.sha
10 echo -n "${hashfile}: "
11 if [ -f /etc/${hashfile} ];then
14 echo "Cannot find ${hashfile}"
18 echo "sha1sum of script [${0}]: " $(sha1sum $0)
20 MISSING_PKGS=$(dpkg-checkbuilddeps |& perl -pe 's/^.+://g; s/\(.*?\)//g; s/\|\s+\S+//g;')
21 MISSING_PKGS="devscripts pristine-tar ${MISSING_PKGS}"
23 if [ -n "${MISSING_PKGS}" ]
25 echo "*******************************************************************"
26 echo "* ADD MISSING DEPENDENCIES TO RESPIN SCRIPT:"
27 echo "${MISSING_PKGS}"
28 echo "*******************************************************************"
32 sudo apt-get install -y ${MISSING_PKGS}
34 pkg_version=$(dpkg-parsechangelog --show-field Version)
35 orig_version=$(echo ${pkg_version} | perl -pe 's/-.+$//') # remove debian suffix
36 orig_tarball=$(git ls-tree remotes/origin/pristine-tar | perl -ne "print /(dpdk_${orig_version}.orig.+).id/")
38 pristine-tar checkout ${orig_tarball}
43 # No fail on lintian errors
45 lintian --info --no-tag-display-limit "dpdk_${pkg_version}_source.changes"
47 echo "*******************************************************************"
48 echo "* DEB_DPDK BUILD SUCCESSFULLY COMPLETED"
49 echo "*******************************************************************"