gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [gnunet] branch master updated: generate perl for checkbash


From: gnunet
Subject: [GNUnet-SVN] [gnunet] branch master updated: generate perl for checkbashisms.pl
Date: Tue, 19 Mar 2019 18:23:16 +0100

This is an automated email from the git hooks/post-receive script.

ng0 pushed a commit to branch master
in repository gnunet.

The following commit(s) were added to refs/heads/master by this push:
     new d4db1cde7 generate perl for checkbashisms.pl
d4db1cde7 is described below

commit d4db1cde70b0791229ff2704262e53e94e7c0dad
Author: ng0 <address@hidden>
AuthorDate: Tue Mar 19 17:17:02 2019 +0000

    generate perl for checkbashisms.pl
---
 lint/Makefile.am                               | 14 ++++++++++++++
 lint/{checkbashisms.pl => checkbashisms.pl.in} |  2 +-
 2 files changed, 15 insertions(+), 1 deletion(-)

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,address@hidden@],$(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:
diff --git a/lint/checkbashisms.pl b/lint/checkbashisms.pl.in
similarity index 99%
rename from lint/checkbashisms.pl
rename to lint/checkbashisms.pl.in
index b2a3c9aa1..0b8b06f86 100755
--- a/lint/checkbashisms.pl
+++ b/lint/checkbashisms.pl.in
@@ -1,4 +1,4 @@
-#!/usr/bin/env perl
address@hidden@
 
 # This script is essentially copied from /usr/share/lintian/checks/scripts,
 # which is:

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]