File: copyright-check

package info (click to toggle)
akira 0.0.13-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 3,508 kB
  • sloc: xml: 64; python: 13; makefile: 11; sh: 8
file content (20 lines) | stat: -rwxr-xr-x 582 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
#!/bin/sh

set -eu

# cleanup stray hint files from a previous run
find -type f -name '*:meta' -delete

# skip tedious Debian files
RE_debian='debian/(changelog|copyright(-check|_hints)?|source/lintian-overrides)'

# extract metadata
exiftool '-textOut!' %d%f.%e:meta --short --short -recurse -ext jpg -ext png .
RE_exif='.*\.(jpg|png)'

licensecheck --copyright --deb-machine --recursive --lines 0 --check '.*' --ignore "^($RE_exif|$RE_debian)$" -- * > debian/copyright_hints

sed -i -e 's/:meta$//' debian/copyright_hints

# cleanup hint files
find -type f -name '*:meta' -delete