[interchange-cvs] interchange - jon modified eg/check_perl_itl
interchange-cvs at icdevgroup.org
interchange-cvs at icdevgroup.org
Mon May 5 20:21:41 UTC 2008
User: jon
Date: 2008-05-05 20:21:41 GMT
Modified: eg check_perl_itl
Log:
Switch logic to check for success rather than many possible failures.
(From Greg Sabino Mullane.)
Revision Changes Path
1.4 interchange/eg/check_perl_itl
rev 1.4, prev_rev 1.3
Index: check_perl_itl
===================================================================
RCS file: /var/cvs/interchange/eg/check_perl_itl,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -u -r1.3 -r1.4
--- check_perl_itl 30 Apr 2008 16:50:36 -0000 1.3
+++ check_perl_itl 5 May 2008 20:21:41 -0000 1.4
@@ -155,7 +155,7 @@
my $errors = qx{perl -c $tempfile 2>&1};
unlink $tempfile unless $opt->{keeptempfile};
- if ($errors !~ /had compilation errors/ and $errors !~ /too many errors/) {
+ if ($errors =~ /$tempfile syntax OK$/) {
print qq{File "$file" had no Perl problems\n} unless $opt->{quiet};
return;
}
More information about the interchange-cvs
mailing list