From 8098bff056702fb65a5fd4b76e03468c43462fe5 Mon Sep 17 00:00:00 2001 From: ng0 Date: Mon, 4 Mar 2019 13:49:09 +0000 Subject: Makefile: Add check-bashism top target --- Makefile.am | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'Makefile.am') diff --git a/Makefile.am b/Makefile.am index fd18d7c3c..9be41951e 100644 --- a/Makefile.am +++ b/Makefile.am @@ -27,3 +27,10 @@ docdir = $(datadir)/doc/gnunet/ doc_DATA = COPYING README ACLOCAL_AMFLAGS = -I m4 + +# Check for bashisms in shell scripts +# Very verbose, need to exclude more files. +check-bashism: + printf "Run checkbashism on all .sh files.\n" + printf "Currently this expects checkbashism.pl at a fixed location." + find . -type f ! -path '*/.*' ! -path '*/_*' -name '*.sh' -print0 | xargs -0 ~/src/scripts/src/checkbashisms.pl -f -- cgit v1.2.3