summaryrefslogtreecommitdiff
path: root/lint/Makefile.am
diff options
context:
space:
mode:
authorng0 <ng0@n0.is>2019-03-19 17:17:02 +0000
committerng0 <ng0@n0.is>2019-03-19 17:17:02 +0000
commitd4db1cde70b0791229ff2704262e53e94e7c0dad (patch)
tree66095f0c6a8a26d1d755a8524db593e31df91f6f /lint/Makefile.am
parentc5d729bcff1471a357e75f10f5a782154983fd8f (diff)
generate perl for checkbashisms.pl
Diffstat (limited to 'lint/Makefile.am')
-rw-r--r--lint/Makefile.am14
1 files changed, 14 insertions, 0 deletions
diff --git a/lint/Makefile.am b/lint/Makefile.am
index 59d4b6073..0de8da54a 100644
--- a/lint/Makefile.am
+++ b/lint/Makefile.am
@@ -1,5 +1,19 @@
all: check-linters
+do_subst = $(SED) -e 's,[@]PERL[@],$(PERL),g'
+
+SUFFIXES = pl.in .pl
+
+checkbashisms.pl: checkbashisms.pl.in Makefile
+ $(do_subst) < $(srcdir)/checkbashisms.pl.in > checkbashisms.pl
+ chmod +x checkbashisms.pl
+
+CLEANFILES= \
+ checkbashisms.pl
+
+noinst_SCRIPTS = \
+ $(CLEANFILES)
+
# Check for bashisms in shell scripts
# Very verbose, need to exclude more files.
check-bashism: