From d99c56a3a435d202c4503f6f62895d8111ac41f3 Mon Sep 17 00:00:00 2001 From: ivan Date: Wed, 26 May 2004 18:59:29 +0000 Subject: [PATCH] require the version of File::Temp with the OO interface --- FS/FS/cust_bill.pm | 12 ++++++------ httemplate/docs/upgrade-1.4.2.html | 1 + 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/FS/FS/cust_bill.pm b/FS/FS/cust_bill.pm index 576e4c846..3b76dd257 100644 --- a/FS/FS/cust_bill.pm +++ b/FS/FS/cust_bill.pm @@ -5,7 +5,7 @@ use vars qw( @ISA $conf $money_char ); use vars qw( $invoice_lines @buf ); #yuck use Date::Format; use Text::Template; -use File::Temp; +use File::Temp 0.14; use FS::UID qw( datasrc ); use FS::Record qw( qsearch qsearchs ); use FS::Misc qw( send_email ); @@ -1143,9 +1143,9 @@ sub print_ps { chdir($dir); system("pslatex $file.tex >/dev/null 2>&1") == 0 - or die "pslatex failed: $!"; + or die "pslatex $file.tex failed: $!"; system("pslatex $file.tex >/dev/null 2>&1") == 0 - or die "pslatex failed: $!"; + or die "pslatex $file.tex failed: $!"; system('dvips', '-q', '-t', 'letter', "$file.dvi", '-o', "$file.ps" ) == 0 or die "dbips failed: $!"; @@ -1190,9 +1190,9 @@ sub print_pdf { #! LaTeX Error: Unknown graphics extension: .eps. system("pslatex $file.tex >/dev/null 2>&1") == 0 - or die "pslatex failed: $!"; + or die "pslatex $file.tex failed: $!"; system("pslatex $file.tex >/dev/null 2>&1") == 0 - or die "pslatex failed: $!"; + or die "pslatex $file.tex failed: $!"; #system('dvipdf', "$file.dvi", "$file.pdf" ); system( @@ -1200,7 +1200,7 @@ sub print_pdf { "| gs -q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile=$file.pdf ". " -c save pop -" ) == 0 - or die "dvips failed: $!"; + or die "dvips | gs failed: $!"; open(PDF, "<$file.pdf") or die "can't open $file.pdf: $! (error in LaTeX template?)\n"; diff --git a/httemplate/docs/upgrade-1.4.2.html b/httemplate/docs/upgrade-1.4.2.html index eb40df8b3..a24661142 100644 --- a/httemplate/docs/upgrade-1.4.2.html +++ b/httemplate/docs/upgrade-1.4.2.html @@ -16,6 +16,7 @@
  • Install Crypt::PasswdMD5
  • Install Net::Whois::Raw
  • CGI.pm minimum version 2.47 is required. You will probably need to install a current CGI.pm from CPAN if you are using Perl 5.005 or earlier. +
  • File::Temp minimum version 0.14 is required. You will probably need to install a currrent File::Temp from CPAN if you are using Perl 5.6 or earlier.
  • If using Apache::ASP, add PerlSetVar RequestBinaryRead Off to your Apache configuration and make sure you are using Apache::ASP minimum version 2.55.
  • Run make aspdocs or make masondocs.
  • Copy aspdocs/ or masondocs/ to your web server's document space. -- 2.11.0