summaryrefslogtreecommitdiffstats
path: root/commands/check
blob: 4b416d18efa17fce9fd7c4d03320e49a8e1f6725 (plain)
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