#! /usr/bin/perl -w
use strict;
use warnings;
use 5.012;
use autodie;
use Text::Cadenceparser;
if ( defined $ARGV[0] ) {
# Create the object
my $parser = Text::Cadenceparser->new( folder => $ARGV[0] );
# Demo of reporting count
#my $count = $parser->count('info');
#print "Found $count info messages\n";
# Demo of printing the overview
say '----------------------------------------------------';
say "Parsed logfiles in folder $ARGV[0], the result:";
$parser->overview();
# Demo of listing specific messages to STDOUT
$parser->list('warning');
$parser->list('error');
} else {
die
"Please pass the folder with the files that need to be parsed as command line option";
}
# ABSTRACT: Create a short human-readable output of the synthesis logfiles
# PODNAME: synth_log.pl
__END__
=pod
=head1 NAME
synth_log.pl - Create a short human-readable output of the synthesis logfiles
=head1 VERSION
version 1.09
=head1 DESCRIPTION
This scripts produces a list of warnings and errors that were encountered in the parsed folder.
=head1 SYNOPSYS
Usage:
synth_log.pl <folder>
Where <folder> needs to be the REPORTS folder of the synthesis run.
=head1 AUTHOR
Lieven Hollevoet <hollie@cpan.org>
=head1 COPYRIGHT AND LICENSE
This software is copyright (c) 2012 by Lieven Hollevoet.
This is free software; you can redistribute it and/or modify it under
the same terms as the Perl 5 programming language system itself.
=cut