latex2html/latex2html-2008-buildroot.diff

15 lines
521 B
Diff

--- config/install.pl
+++ config/install.pl
@@ -372,7 +372,10 @@
if($cfg{TEXPATH}) {
print "\nNote: trying to install LaTeX2HTML style files in TeX directory tree\n ($cfg{TEXPATH})\n";
- unless(mkpath($cfg{TEXPATH})) {
+ my $dest = $cfg{TEXPATH};
+ my $buildroot=$ENV{"RPM_BUILD_ROOT"};
+ $dest= "$buildroot$dest";
+ unless(mkpath($dest)) {
#my $testpath = $cfg{TEXPATH}; # to strip (latex2)html
#$testpath =~ s/[$dd$dd][^$dd$dd]*$//;
#if((-d $cfg{TEXPATH} && !-w _) || (-d $testpath && !-w _)) {