From 8e79ad9f544d1c4a0476e0d96aef0496ca7fc741 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 14 Apr 2024 15:46:56 +0200 Subject: Adding upstream version 0.85.6. Signed-off-by: Daniel Baumann --- test/perl-syntax.in | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100755 test/perl-syntax.in (limited to 'test/perl-syntax.in') diff --git a/test/perl-syntax.in b/test/perl-syntax.in new file mode 100755 index 0000000..5edb5e5 --- /dev/null +++ b/test/perl-syntax.in @@ -0,0 +1,30 @@ +#!/bin/sh +# +# perl-syntax: Check validity of perl syntax in programs +# Copyright © 2010 Roger Leigh . +# +####################################################################### + +set -e + +for program in "@abs_top_srcdir@/bin/"* +do + if grep '#!/usr/bin/perl' "$program" 2>&1 >/dev/null; then + echo "Checking $program" + PERL5LIB="@abs_top_srcdir@/lib" /usr/bin/perl -cw "$program" + fi +done -- cgit v1.2.3