File: 10basic

package info (click to toggle)
dh-builtusing 0.0.12
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 160 kB
  • sloc: sh: 456; perl: 152; makefile: 23
file content (28 lines) | stat: -rw-r--r-- 666 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/sh

{
    fake_control_header 'dpkg-dev, gcc, red-herring'

    fake_control_package foo all '
 unrelated,
 ${dh-builtusing:gcc},
# ${dh-builtusing:red-herring},
 ${dh-builtusing:dpkg-dev},
 also-unrelated'

    fake_control_package static-built-using all '
Static-Built-Using: ${dh-staticbuiltusing:gcc}'

} > debian/control

$tested_command

check_substvar         foo                dpkg-dev dpkg
check_substvar         foo                gcc      gcc-defaults
check_substvars_absent foo                red-herring
check_substvar         static-built-using gcc      gcc-defaults static

dh_gencontrol

check_control foo dpkg
check_control foo gcc-defaults