From a5cdc24d521c47ea0e4eaf36868c05aa7d62a67b Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Thu, 7 Apr 2022 02:23:14 -0400 Subject: update docs, add -s option --- sbopkglint.d/05-basic-sanity.t.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'sbopkglint.d/05-basic-sanity.t.sh') diff --git a/sbopkglint.d/05-basic-sanity.t.sh b/sbopkglint.d/05-basic-sanity.t.sh index c0eb9b7..562dbc5 100644 --- a/sbopkglint.d/05-basic-sanity.t.sh +++ b/sbopkglint.d/05-basic-sanity.t.sh @@ -45,7 +45,7 @@ nofiledirs="usr usr/doc usr/share usr/man usr/doc/HTML" # files +x. noexecdirs="usr/man usr/share/pixmaps usr/share/icons usr/share/applications usr/share/appdata usr/share/mime usr/share/mime-info usr/share/glib-2.0 usr/doc/HTML" -# these files must exist. +# these files must exist, unless -s option given. requiredfiles="usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild" # these files must not exist. @@ -132,9 +132,11 @@ for i in $nofiledirs; do [ -n "$badstuff" ] && warn "$i should only contain directories, not:" && ls -ld $badstuff done -for i in $requiredfiles; do - [ -f "$i" ] || warn "missing required file: $i" -done +if [ -z "$SLACKBUILD_MISSING_OK" ]; then + for i in $requiredfiles; do + [ -f "$i" ] || warn "missing required file: $i" + done +fi for i in $noexecdirs; do [ -d "$i" ] || continue -- cgit v1.2.3