#!/usr/bin/perl # # Copyright (c) International Business Machines Corp., 2002 # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or (at # your option) any later version. # # This program is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # # # posterize.pl # # This script generates a postscript file from output generated from the # fcgp http://sourceforge.net/projects/fcgp/ for plotting # # # History: # 2003-09-04 wrote - James M Kenefick Jr. # # a good deal of this could be turned in to cli # arguments. # Constants my $Title = "Linux Kernel Coverage"; my $KernelVersion = "2.5.73"; my $TestDescription = "A Sample Print"; my $Image = "../lgp/image.ps"; # Variables my $Bounds = ""; # Paper sizes in inches my $PAPER_WIDTH = 34; my $PAPER_HEIGHT = 42; # points per inch my $ppi = 72; # Margins my $TopMargin = 1; my $BottomMargin = 1.5; my $LeftMargin = 1; my $RightMargin = 1; $RightMargin = $PAPER_WIDTH - $RightMargin; $TopMargin = $PAPER_HEIGHT - $TopMargin; my $filename = "poster.ps"; # Sizes in ppi my $PPI_WIDTH = ($PAPER_WIDTH * $ppi); my $PPI_HEIGHT = ($PAPER_HEIGHT * $ppi); # Date we create poster my $date = `date`; print STDERR "Creating Poster\n"; open POSTER, ">$filename"; print(POSTER <