Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Interchange: cvs

interchange - jon modified eg/check_perl_itl

 

 

Interchange cvs RSS feed   Index | Next | Previous | View Threaded


interchange-cvs at icdevgroup

Apr 30, 2008, 9:50 AM

Post #1 of 2 (109 views)
Permalink
interchange - jon modified eg/check_perl_itl

User: jon
Date: 2008-04-30 16:50:36 GMT
Modified: eg check_perl_itl
Log:
Update to check_perl_itl from Greg Sabino Mullane to catch alternate Perl error string.

Revision Changes Path
1.3 interchange/eg/check_perl_itl


rev 1.3, prev_rev 1.2
Index: check_perl_itl
===================================================================
RCS file: /var/cvs/interchange/eg/check_perl_itl,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -u -r1.2 -r1.3
--- check_perl_itl 28 Apr 2008 19:31:34 -0000 1.2
+++ check_perl_itl 30 Apr 2008 16:50:36 -0000 1.3
@@ -7,7 +7,7 @@
use warnings;
use Getopt::Long;

-our $VERSION = '1.1.1';
+our $VERSION = '1.1.2';

@ARGV or show_help();

@@ -155,7 +155,7 @@
my $errors = qx{perl -c $tempfile 2>&1};
unlink $tempfile unless $opt->{keeptempfile};

- if ($errors !~ /had compilation errors/) {
+ if ($errors !~ /had compilation errors/ and $errors !~ /too many errors/) {
print qq{File "$file" had no Perl problems\n} unless $opt->{quiet};
return;
}





_______________________________________________
interchange-cvs mailing list
interchange-cvs[at]icdevgroup.org
http://www.icdevgroup.org/mailman/listinfo/interchange-cvs


interchange-cvs at icdevgroup

May 5, 2008, 1:21 PM

Post #2 of 2 (89 views)
Permalink
interchange - jon modified eg/check_perl_itl [In reply to]

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;
}





_______________________________________________
interchange-cvs mailing list
interchange-cvs[at]icdevgroup.org
http://www.icdevgroup.org/mailman/listinfo/interchange-cvs

Interchange cvs RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.