diff options
author | ivan <ivan> | 2004-05-26 18:59:29 +0000 |
---|---|---|
committer | ivan <ivan> | 2004-05-26 18:59:29 +0000 |
commit | d99c56a3a435d202c4503f6f62895d8111ac41f3 (patch) | |
tree | 73ede175f521d6912a1509ef85498bd88f013282 | |
parent | 3abe6ab40fa3ecee7b5c4038c556ccf4a4ab4227 (diff) |
require the version of File::Temp with the OO interface
-rw-r--r-- | FS/FS/cust_bill.pm | 12 | ||||
-rw-r--r-- | 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 @@ <li>Install <a href="http://search.cpan.org/search?dist=Crypt-PasswdMD5">Crypt::PasswdMD5</a> <li>Install <a href="http://search.cpan.org/search?dist=Net-Whois-Raw">Net::Whois::Raw</a> <li>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. + <li>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. <li>If using Apache::ASP, add <code>PerlSetVar RequestBinaryRead Off</code> to your Apache configuration and make sure you are using Apache::ASP minimum version 2.55. <li>Run <code>make aspdocs</code> or <code>make masondocs</code>. <li>Copy <code>aspdocs/</code> or <code>masondocs/</code> to your web server's document space. |