aboutsummaryrefslogtreecommitdiff
path: root/lint
diff options
context:
space:
mode:
Diffstat (limited to 'lint')
-rw-r--r--lint/Makefile.am14
-rwxr-xr-xlint/checkbashisms.pl.in (renamed from lint/checkbashisms.pl)2
2 files changed, 15 insertions, 1 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 @@
1all: check-linters 1all: check-linters
2 2
3do_subst = $(SED) -e 's,[@]PERL[@],$(PERL),g'
4
5SUFFIXES = pl.in .pl
6
7checkbashisms.pl: checkbashisms.pl.in Makefile
8 $(do_subst) < $(srcdir)/checkbashisms.pl.in > checkbashisms.pl
9 chmod +x checkbashisms.pl
10
11CLEANFILES= \
12 checkbashisms.pl
13
14noinst_SCRIPTS = \
15 $(CLEANFILES)
16
3# Check for bashisms in shell scripts 17# Check for bashisms in shell scripts
4# Very verbose, need to exclude more files. 18# Very verbose, need to exclude more files.
5check-bashism: 19check-bashism:
diff --git a/lint/checkbashisms.pl b/lint/checkbashisms.pl.in
index b2a3c9aa1..0b8b06f86 100755
--- a/lint/checkbashisms.pl
+++ b/lint/checkbashisms.pl.in
@@ -1,4 +1,4 @@
1#!/usr/bin/env perl 1#!@PERL@
2 2
3# This script is essentially copied from /usr/share/lintian/checks/scripts, 3# This script is essentially copied from /usr/share/lintian/checks/scripts,
4# which is: 4# which is: