#! /usr/bin/gawk -f # Last edited on 2019-03-15 19:40:31 by stolfilocal # Reads from "stdin" a log file of one or more POV-ray runs. # Removes some of the garbage printed out by POV-Ray. /^[\011 ]*[\/]bin[\/]rm -f main.png/ { next; } /^nice [\/]usr[\/]bin[\/]povray [\\]/ { next; } /^[\011 ]*\+FN \+Q9 [\\]/{ next; } /^[\011 ]*\+W[0-9]* \+H[0-9]* [\\]/{ next; } /^[\011 ]*\+AM1 \+A0\.0 \+R2 [\\]/{ next; } /^[\011 ]*\+D \+SP32 \+EP4 [\\]/{ next; } /^[\011 ]*\+L[\/]usr[\/]share[\/]povray-3\.6[\/]include[\/] [\\]/{ next; } /^[\011 ]*\+Imain\.pov [\\]/{ next; } /^[\011 ]*\+Omain\.png/ { next; } /^Persistence of Vision[(]tm[)] Ray Tracer Version 3\.6\.1 [(]g\+\+ 4\.4\.1 @/ { next; } /^ i586-mandriva-linux-gnu[)]/ { next; } /^This is an unofficial version compiled by:/ { next; } /^ Mandriva_Linux/ { next; } /^ The POV-Ray Team[(]tm[)] is not responsible for supporting this version\./ { next; } /^POV-Ray is based on DKBTrace 2\.12 by David K\. Buck [&] Aaron A\. Collins/ { next; } /^Copyright 1991-2003 Persistence of Vision Team/ { next; } /^Copyright 2003-2004 Persistence of Vision Raytracer Pty\. Ltd\./ { next; } /^Primary POV-Ray 3\.5[\/]3\.6 Developers: [(]Alphabetically[)]/ { next; } /^[\011 ]*Chris Cason[\011 ]*Thorsten Froehlich[\011 ]*Nathan Kopp[\011 ]*Ron Parker[\011 ]*/ { next; } /^Contributing Authors: [(]Alphabetically[)]/ { next; } /^[\011 ]*Steve Anger[\011 ]*Eric Barish[\011 ]*Dieter Bayer[\011 ]*Steve A\. Bennett[\011 ]*/ { next; } /^[\011 ]*David K\. Buck[\011 ]*Nicolas Calimet[\011 ]*Aaron A\. Collins[\011 ]*Chris Dailey[\011 ]*/ { next; } /^[\011 ]*Steve Demlow[\011 ]*Andreas Dilger[\011 ]*Alexander Enzmann[\011 ]*Dan Farmer[\011 ]*/ { next; } /^[\011 ]*Mark Gordon[\011 ]*Christoph Hormann[\011 ]*Mike Hough[\011 ]*Chris Huff[\011 ]*/ { next; } /^[\011 ]*Kari Kivisalo[\011 ]*Lutz Kretzschmar[\011 ]*Jochen Lippert[\011 ]*Pascal Massimino[\011 ]*/ { next; } /^[\011 ]*Jim McElhiney[\011 ]*Douglas Muir[\011 ]*Juha Nieminen[\011 ]*Bill Pulver[\011 ]*/ { next; } /^[\011 ]*Eduard Schwan[\011 ]*Wlodzimierz Skiba[\011 ]*Robert Skinner[\011 ]*Yvo Smellenbergh[\011 ]*/ { next; } /^[\011 ]*Zsolt Szalavari[\011 ]*Scott Taylor[\011 ]*Massimo Valentini[\011 ]*Timothy Wegner[\011 ]*/ { next; } /^[\011 ]*Drew Wells[\011 ]*Chris Young[\011 ]*/ { next; } /^Other contributors are listed in the documentation\./ { next; } /^Support libraries used by POV-Ray:/ { next; } /^[\011 ]*ZLib 1\.2\.3, Copyright 1995-1998 Jean-loup Gailly and Mark Adler/ { next; } /^[\011 ]*LibPNG 1\.2\.5, Copyright 1998-2002 Glenn Randers-Pehrson/ { next; } /^[\011 ]*LibJPEG 7, Copyright 1998 Thomas G\. Lane/ { next; } /^[\011 ]*LibTIFF 3\.9\.1, Copyright 1988-1997 Sam Leffler, 1991-1997 SGI/ { next; } /^Redirecting Options/ { next; } /^[\011 ]*All Streams to console\.\.\.\.\.\.\.\.\.\.On/ { next; } /^[\011 ]*Debug Stream to console\.\.\.\.\.\.\.\.\.On/ { next; } /^[\011 ]*Fatal Stream to console\.\.\.\.\.\.\.\.\.On/ { next; } /^[\011 ]*Render Stream to console\.\.\.\.\.\.\.\.On/ { next; } /^[\011 ]*Statistics Stream to console\.\.\.\.On/ { next; } /^[\011 ]*Warning Stream to console\.\.\.\.\.\.\.On/ { next; } /^Parsing Options/ { next; } /^[\011 ]*Input file: main\.pov [(]compatible to version 3\.61[)]/ { next; } /^[\011 ]*Remove bounds\.\.\.\.\.\.\.\.On/ { next; } /^[\011 ]*Split unions\.\.\.\.\.\.\.\.\.Off/ { next; } /^[\011 ]*Library paths:/ { next; } /^[\011 ]*[\/]usr[\/]share[\/]povray-3\.6/ { next; } /^[\011 ]*[\/]usr[\/]share[\/]povray-3\.6[\/]ini/ { next; } /^[\011 ]*[\/]usr[\/]share[\/]povray-3\.6[\/]include/ { next; } /^[\011 ]*[\/]usr[\/]share[\/]povray-3\.6[\/]include[\/]/ { next; } /^[\011 ]*[\/]home[\/]stolfilocal[\/]public_html[\/]courses[\/].*[\/]tt-fonts/ { next; } /^Output Options/ { next; } /^[\011 ]*Graphic display\.\.\.\.\.\.On[\011 ]*[(]gamma: 2\.2[)]/ { next; } /^[\011 ]*Mosaic preview\.\.\.\.\.\.\.On[\011 ]*[(]pixel sizes 32 to 4[)]/ { next; } /^[\011 ]*CPU usage histogram\.\.Off/ { next; } /^[\011 ]*Continued trace\.\.\.\.\.\.Off/ { next; } /^Tracing Options/ { next; } /^[\011 ]*Quality:[\011 ]*9/ { next; } /^[\011 ]*Bounding boxes\.\.\.\.\.\.\.On[\011 ]*Bounding threshold: 3/ { next; } /^[\011 ]*Light Buffer\.\.\.\.\.\.\.\.\.On/ { next; } /^[\011 ]*Vista Buffer\.\.\.\.\.\.\.\.\.On[\011 ]*Draw Vista Buffer\.\.\.\.Off/ { next; } /^[\011 ]*Antialiasing\.\.\.\.\.\.\.\.\.On[\011 ]*[(]Method 1, Threshold 0\.000, Depth 2, Jitter 1\.00[)]/ { next; } /^[\011 ]*[0-9]*:[0-9]*:[0-9]* Parsing/ { next; } /^[\011 ]*[0-9]*:[0-9]*:[0-9]* Creating bounding slabs/ { next; } /^[\011 ]*[0-9]*:[0-9]*:[0-9]* Creating vista buffer/ { next; } /^[\011 ]*[0-9]*:[0-9]*:[0-9]* Creating light buffers [0-9]*K tokens/ { next; } /^[\011 ]*[0-9]*:[0-9]*:[0-9]* Displaying/ { next; } /^Using 24 bit TrueColor visual/ { next; } /^Using default window background/ { next; } /^Mapping background image/ { next; } /^X error: BadMatch [(]invalid parameter attributes[)]/ { next; } /^X error: BadGC [(]invalid GC parameter[)]/ { next; } /^X error: BadMatch [(]invalid parameter attributes[)]/ { next; } /^X error: BadGC [(]invalid GC parameter[)]/ { next; } /^[\011 ]*[0-9]*:[0-9]*:[0-9]* Rendering line [0-9]* of [0-9]*, [0-9]* supersamples/ { next; } /^[\011 ]*[0-9]*:[0-9]*:[0-9]* Done Tracing/ { next; } /^----------------------------------------------------------------------------/ { next; } /^Smallest Alloc:[\011 ]*[0-9]* bytes/ { next; } /^Largest[\011 ]*Alloc:[\011 ]*[0-9]* bytes/ { next; } /^Peak memory used:[\011 ]*[0-9]* bytes/ { next; } /^Total Scene Processing Times/ { next; } /^[\011 ]*Parse Time:/ { next; } /^[\011 ]*Photon Time:/ { next; } /^[\011 ]*Render Time:/ { next; } /^[\011 ]*Total Time:/ { next; } // { print; }