aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Spek <p.spek@tyil.nl>2023-03-10 09:35:27 +0100
committerPatrick Spek <p.spek@tyil.nl>2023-03-10 09:43:45 +0100
commit20383605727e433f5b0daa6d98a0e6617b2ad416 (patch)
tree3e70b1145895ad03f7524eaa89427d7b8e8d14df
parent6e2c43bbde416946eeebd174ee6b5b4b15ef19aa (diff)
Update qa target
-rw-r--r--Makefile8
1 files changed, 7 insertions, 1 deletions
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"