| 1 |
#!/bin/sh |
| 2 |
|
| 3 |
{ |
| 4 |
fake_control_header 'dpkg-dev, gcc' |
| 5 |
|
| 6 |
fake_control_package p1 any "\${dh-builtusing:dpkg-dev} [!$host], \${dh-builtusing:gcc} <nodoc>" |
| 7 |
fake_control_package p2 any "\${dh-builtusing:dpkg-dev} [!$host], \${dh-builtusing:gcc} <!nodoc>" |
| 8 |
fake_control_package p3 any "\${dh-builtusing:dpkg-dev} [$host], \${dh-builtusing:gcc} <nodoc>" |
| 9 |
fake_control_package p4 any "\${dh-builtusing:dpkg-dev} [$host], \${dh-builtusing:gcc} <!nodoc>" |
| 10 |
|
| 11 |
} > debian/control |
| 12 |
|
| 13 |
DEB_BUILD_PROFILES=nodoc \ |
| 14 |
$tested_command |
| 15 |
|
| 16 |
check_substvar p1 dpkg-dev disabled-by-restriction |
| 17 |
check_substvar p1 gcc gcc-defaults |
| 18 |
|
| 19 |
check_substvar p2 dpkg-dev disabled-by-restriction |
| 20 |
check_substvar p2 gcc disabled-by-restriction |
| 21 |
|
| 22 |
check_substvar p3 dpkg-dev dpkg |
| 23 |
check_substvar p3 gcc gcc-defaults |
| 24 |
|
| 25 |
check_substvar p4 dpkg-dev dpkg |
| 26 |
check_substvar p4 gcc disabled-by-restriction |
| 27 |
|
| 28 |
DEB_BUILD_PROFILES=nodoc \ |
| 29 |
dh_gencontrol |
| 30 |
|
| 31 |
check_control p1 gcc-defaults |
| 32 |
check_control p3 dpkg |
| 33 |
check_control p3 gcc-defaults |
| 34 |
check_control p4 dpkg |