Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Cople with ctest 2.8 still compatible with previous versions (2.6.x).
[simgrid.git] / tools / tesh / colorize.pl
1 #!/usr/bin/perl -w
2 use Term::ANSIColor qw{:constants};
3 $Term::ANSIColor::AUTORESET = 1;
4
5 while(<>){
6     if($_ =~ m/^(\d+\:\s)?[-]\s.*/){
7         print BOLD RED $_;
8     }elsif ($_ =~ m/^(\d+\:\s)?[+]\s.*/){
9         print BOLD GREEN $_;
10     }else{
11         print BOLD $_;
12     }
13 }
14
15