]>
Commit | Line | Data |
---|---|---|
d974f731 | 1 | #!/bin/sh |
24d39ce5 AW |
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) | |
6 | build_needed=0 | |
7 | for trigger in ${ADT_TEST_TRIGGERS:-force} | |
8 | do | |
9 | case "$trigger" in | |
10 | linux/*|linux-lts-*/*|linux-meta*/*) ;; | |
11 | *) build_needed=1 ;; | |
12 | esac | |
13 | done | |
14 | if [ "$build_needed" -eq 0 ]; then | |
15 | echo "rebuild: short circuiting build for '${ADT_TEST_TRIGGERS}'" | |
16 | exit 0 | |
17 | fi | |
18 | ||
d974f731 TG |
19 | set -e |
20 | dpkg-buildpackage -rfakeroot -us -uc -b |