diff options
author | ng0 <ng0@n0.is> | 2019-03-04 13:49:09 +0000 |
---|---|---|
committer | ng0 <ng0@n0.is> | 2019-03-04 13:49:09 +0000 |
commit | 8098bff056702fb65a5fd4b76e03468c43462fe5 (patch) | |
tree | adba9d3b49a6e1c602d8a4e263722378f4269278 /Makefile.am | |
parent | 545f3f9a7b35288a38030619964001be3ba83666 (diff) |
Makefile: Add check-bashism top target
Diffstat (limited to 'Makefile.am')
-rw-r--r-- | Makefile.am | 7 |
1 files changed, 7 insertions, 0 deletions
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 |