commit: 17a3633dfca328edb40d46b692476ca87a14b9a7 Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> AuthorDate: Sat Apr 11 19:34:59 2020 +0000 Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> CommitDate: Sat Apr 11 19:43:05 2020 +0000 URL: https://gitweb.gentoo.org/proj/genkernel.git/commit/?id=17a3633d
Makefile: run shellcheck against initramfs' scripts This should help us catching fatal errors like bug 717102 before release. Bug: https://bugs.gentoo.org/717102 Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org> Makefile | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index a3efcd2..e423ab0 100644 --- a/Makefile +++ b/Makefile @@ -35,7 +35,7 @@ else @true endif -dist: verify-doc check-git-repository distclean $(EXTRA_DIST) +dist: verify-shellscripts-initramfs verify-doc check-git-repository distclean $(EXTRA_DIST) mkdir "$(distdir)" git ls-files -z | xargs -0 cp --no-dereference --parents --target-directory="$(distdir)" \ $(EXTRA_DIST) @@ -89,3 +89,13 @@ verify-doc: doc/genkernel.8.txt exit 1 ; \ fi ; \ rm -f faildoc + +verify-shellscripts-initramfs: +# we need to check every file because a fatal error in +# an included file (SC1094) is just a warning at the moment + shellcheck \ + --external-sources \ + --source-path SCRIPTDIR \ + --severity error \ + defaults/linuxrc \ + defaults/initrd.scripts
