File: update-lintian-overrides

package info (click to toggle)
u-boot 2016.11%2Bdfsg1-4
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 104,408 kB
  • ctags: 428,706
  • sloc: ansic: 1,260,674; asm: 33,807; python: 10,106; perl: 8,014; makefile: 7,111; sh: 1,975; cpp: 1,829; yacc: 604; lex: 363; tcl: 28; sed: 24; awk: 6
file content (46 lines) | stat: -rwxr-xr-x 1,560 bytes parent folder | download
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#!/bin/sh

target_file=debian/targets

awk '/^[a-z0-9]/{print $2}' ${target_file} | sort -u | while read subarch ; do
    case ${subarch} in
        -) package=u-boot ;;
        *) package=u-boot-${subarch} ;;
    esac
    overrides=debian/${package}.lintian-overrides

    cat >${overrides}<<EOF

# There are no file conflicts across architectures for u-boot, as each
# target is only installed on a single architecture. In theory, some
# targets could be built on multiple architectures, but could instead install
# the package for the architecture needed.
EOF

    sed -n "/^[a-z0-9].*[[:space:]]$subarch[[:space:]]/p" ${target_file} | while read arch subarch2 platform targets ; do
        echo "${package} [${arch}]: arch-dependent-file-not-in-arch-specific-directory usr/lib/u-boot/${platform}/uboot.elf"
    done >> ${overrides}

    cat >>${overrides}<<EOF

# These bootloaders need to be statically linked.
EOF

    sed -n "/^[a-z0-9].*[[:space:]]$subarch[[:space:]]/p" ${target_file} | while read arch subarch2 platform targets ; do
        echo "${package} [${arch}]: statically-linked-binary usr/lib/u-boot/${platform}/uboot.elf"
    done >> ${overrides}

    cat >>${overrides}<<EOF

${package}: description-synopsis-starts-with-article

# Synopsys is the name of a company, not a misspelling.
${package}: spelling-error-in-copyright Synopsys Synopsis
EOF
done

package=u-boot-tools
cat >debian/${package}.lintian-overrides<<EOF
# Synopsys is the name of a company, not a misspelling.
${package}: spelling-error-in-copyright Synopsys Synopsis
EOF