summaryrefslogtreecommitdiff
path: root/textproc/latex2html/files/patch-config-install.pl
blob: 60c284d2cae23f9f127dd4d23519a3543d13ca3c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
--- config/install.pl.orig	2016-04-19 16:52:35 UTC
+++ config/install.pl
@@ -372,7 +372,7 @@ 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})) {
+  unless(mkpath($ENV{DESTDIR}.$cfg{TEXPATH})) {
   #my $testpath = $cfg{TEXPATH}; # to strip (latex2)html
   #$testpath =~ s/[$dd$dd][^$dd$dd]*$//;
   #if((-d $cfg{TEXPATH} && !-w _) || (-d $testpath && !-w _)) {