]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blame - debian/tests/rebuild
UBUNTU: [Debian] make rebuild use skippable error codes when skipping.
[mirror_ubuntu-bionic-kernel.git] / debian / tests / rebuild
CommitLineData
0d34a427
LO
1#!/bin/sh
2
3# If we are triggering for just linux or linux-meta we know we have
4# just built the kernel and there is no point in repeating that
5# build, it just wastes time. (LP: #1498862)
6build_needed=0
7for trigger in ${ADT_TEST_TRIGGERS:-force}
8do
9 case "$trigger" in
8d85ee58 10 linux/*|linux-lts-*/*|linux-meta*/*|linux-oem*/*|fakeroot/*|gdb/*|git/*|bzr/*|gcc-multilib/*) ;;
0d34a427
LO
11 *) build_needed=1 ;;
12 esac
13done
14if [ "$build_needed" -eq 0 ]; then
15 echo "rebuild: short circuiting build for '${ADT_TEST_TRIGGERS}'"
f601968c 16 exit 77
0d34a427
LO
17fi
18
19set -e
2c21160b 20dpkg-buildpackage -rfakeroot -us -uc -b -Pautopkgtest