summaryrefslogtreecommitdiffstats
path: root/commands/check
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-09 09:43:48 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-09 09:43:48 +0000
commit45883c31c7274fc67bedc4a590d8f2987a792a6a (patch)
tree6c728e20b450e1c47747ae54cea148b81f720297 /commands/check
parentInitial commit. (diff)
downloadkernel-wedge-45883c31c7274fc67bedc4a590d8f2987a792a6a.tar.xz
kernel-wedge-45883c31c7274fc67bedc4a590d8f2987a792a6a.zip
Adding upstream version 2.105.upstream/2.105upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rwxr-xr-xcommands/check16
1 files changed, 16 insertions, 0 deletions
diff --git a/commands/check b/commands/check
new file mode 100755
index 0000000..4b416d1
--- /dev/null
+++ b/commands/check
@@ -0,0 +1,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