X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=extras%2Fmake.pl;h=0f0ac3465ef1f539547f83892f4ca5eb0088c73a;hb=e1e9924a9a130bed2a614fa32b437a84474181bb;hp=15b9cc75e74a20feaf10ec7c0acaf70c55b84015;hpb=77536f83e3209cfce4d6069080ab7fd85a2e8ea1;p=vlc diff --git a/extras/make.pl b/extras/make.pl index 15b9cc75e7..0f0ac3465e 100755 --- a/extras/make.pl +++ b/extras/make.pl @@ -23,26 +23,35 @@ while() $line = $_; chomp $line; # Skip entering/leaving directories and incomplete lines - if( + if( $line =~ /make\[([0-9]*)\]:.*/ || -# $line =~ /.*\s\\$/ || - $line =~ /^test\s\-z\s/ || +# $line =~ /.*\s\\$/ || + $line =~ /^test\s\-z\s/ || $line =~ /^Making\sclean\sin\s\./ || - $line =~ /^then\smv/ || - $line =~ /make\s\sall-recursive/ ) + $line =~ /then\smv\s-f/ || + $line =~ /.*make\s\s.*/ || + $line =~ /make\s\sall-recursive/ || + $line =~ /[A-z0-9-]*ar\s[A-z0-9]*\s([A-z0-9\-_\/\.]*)\s.*/ || + $line =~ /^[A-z0-9-]*ranlib\s[A-z0-9-_]*plugin(.*)/ || + $line =~ /^touch.*/ || + $line =~ /^srcdir=.*/ || + $line =~ /^.* (lib[A-z0-9-_]*plugin.so).*/ || + $line =~ /^\sgcc\s-std=.*/ || + $line =~ /^.*libtool.*\-o\s(lib.*\.la).*/ || + $line =~ /^.*rm\s\-f\s(.*)/ || + $line =~ /^rm\s-fr\s(.*)/ || + $line =~ /^creating lib.*/ ) {} - # Info - elsif( + # Info + elsif( + $line =~ s/^.*\-shared.*(lib.*\.so).*/ LINK : $1/g || $line =~ s/^.* (lib.*\.so).*/ LINK : $1/g || - $line =~ s/^.* (lib.*\.o)\s\.\/(.*)/ COMPILE : $2 -> $1/g || - $line =~ s/^.* (lib.*\.o)\s`.*`(.*);/ COMPILE : $2 -> $1/g || - $line =~ s/^ar\s[A-z0-9]*\s([A-z0-9\-_\/\.]*)\s.*/ ARCHIVE : $1/g || - $line =~ s/^ranlib\s(.*)/ RANLIB : $1/g || + $line =~ s/^.* (lib.*\.o)\s\.\/(.*)/ COMPILE : $2/g || + $line =~ s/^.* (lib.*\.o)\s`.*`(.*);\ \\/ COMPILE : $2/ || + $line =~ s/.*\-o\s([^\s]*)\s`.*`([^\s]*);.*/ COMPILE : $2/g || + $line =~ s/^[A-z0-9-]*ranlib\s(.*)/ RANLIB : $1/g || $line =~ s/^Making\sall\sin\s(.*)/MAKE : $1/g || - $line =~ s/^Making\sclean\sin\s(.*)/CLEAN : $1/g || - $line =~ s/^rm\s\-f\s(.*)/ REMOVE : $1/g || - $line =~ s/.*\-o\s([^\s]*)\s.*/ BUILD : $1/g) - + $line =~ s/^Making\sclean\sin\s(.*)/CLEAN : $1/g ) { print $info.$line.$reset."\n"; } @@ -59,10 +68,9 @@ while() { print $error.$line.$reset."\n"; } - # Print unmatched lines + # Print unmatched lines else { print $line."\n"; } - }