From 20383605727e433f5b0daa6d98a0e6617b2ad416 Mon Sep 17 00:00:00 2001
From: Patrick Spek
Date: Fri, 10 Mar 2023 09:35:27 +0100
Subject: Update qa target
---
Makefile | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
index 86570f8..50c50f8 100644
--- a/Makefile
+++ b/Makefile
@@ -13,6 +13,8 @@ PKG_VERSION=0.0.0
PKG_WORKDIR:=$(or $(PKG_WORKDIR),$(shell mktemp -d))
PKG_ROOT:=$(PKG_WORKDIR)/bashtard-$(PKG_VERSION)
+rwildcard=$(foreach d,$(wildcard $(1:=/*)),$(call rwildcard,$d,$2) $(filter $(subst *,%,$2),$d))
+
all:
: # No build step required, use `make install` to install this program
@@ -65,8 +67,12 @@ pkg-debian:
dpkg-deb -b "$(PKG_ROOT)" "dist/bashtard-$(PKG_VERSION).deb"
qa:
+ # Check licenses
reuse lint
- shellcheck -x bin/bashtard **/*.bash
+
+ # Check code
+ shellcheck -s sh bin/bashtard
+ shellcheck -s bash $(call rwildcard,.,*.bash)
share:
mkdir -pv -- "$(PREFIX)$(DESTDIR)/share/bashtard"
--
cgit v1.1