File: check

package info (click to toggle)
kernel-wedge 2.106
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 396 kB
  • sloc: perl: 581; sh: 352; makefile: 21
file content (16 lines) | stat: -rwxr-xr-x 289 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh -e
empty=
if [ $# -ge 1 ]; then
    packages="$*"
else
    packages="$(dh_listpackages -s)"
fi
for pkg in $packages; do
	if [ -z  "$(find debian/$pkg -type f)" ]; then
		echo "$pkg will be empty" >&2
		empty=1
	fi
done
if [ "$empty" -a -z "$KW_CHECK_NONFATAL" ]; then
	exit 1
fi