From: ng0 Date: Mon, 4 Mar 2019 13:49:09 +0000 (+0000) Subject: Makefile: Add check-bashism top target X-Git-Tag: v0.11.1~180 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=8098bff056702fb65a5fd4b76e03468c43462fe5;p=oweals%2Fgnunet.git Makefile: Add check-bashism top target --- 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