summaryrefslogtreecommitdiff
blob: 2d07beff449b40a106c3834f3938ab59ba828cb6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Index: latex2html-2008/config/install.pl
===================================================================
--- latex2html-2008.orig/config/install.pl
+++ latex2html-2008/config/install.pl
@@ -372,7 +372,9 @@ foreach $item (sort keys %Install_items)
 
 if($cfg{TEXPATH}) {
   print "\nNote: trying to install LaTeX2HTML style files in TeX directory tree\n     ($cfg{TEXPATH})\n";
-  unless(mkpath($cfg{TEXPATH})) {
+  my $destdir = $cfg{TEXPATH};
+  $destdir = $ENV{'DESTDIR'}.$destdir if($ENV{'DESTDIR'});
+  unless(mkpath($destdir)) {
   #my $testpath = $cfg{TEXPATH}; # to strip (latex2)html
   #$testpath =~ s/[$dd$dd][^$dd$dd]*$//;
   #if((-d $cfg{TEXPATH} && !-w _) || (-d $testpath && !-w _)) {