Skip to content

Commit

Permalink
Fix #67 DESTDIR not fully implemented
Browse files Browse the repository at this point in the history
install.pl was testing that it could create directory $TEXPATH
instead of $DESTDIR/$TEXPATH

remove test - directory creation will be tested by &install_file
  • Loading branch information
Dan Gildea committed Apr 28, 2021
1 parent 649146c commit d50fa39
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions config/install.pl
Expand Up @@ -373,13 +373,7 @@
#-----------------------------------------------------------------------------

if($cfg{TEXPATH}) {
print "\nNote: trying to install LaTeX2HTML style files in TeX directory tree\n ($cfg{TEXPATH})\n";
unless(mkpath($cfg{TEXPATH})) {
#my $testpath = $cfg{TEXPATH}; # to strip (latex2)html
#$testpath =~ s/[$dd$dd][^$dd$dd]*$//;
#if((-d $cfg{TEXPATH} && !-w _) || (-d $testpath && !-w _)) {
print STDERR "\nError: Cannot install LaTeX2HTML style files in $cfg{TEXPATH}\n";
} else {
print "\nNote: trying to install LaTeX2HTML style files in TeX directory tree\n ($cfg{TEXPATH})\n";
my $dir = 'texinputs';
my $dest = $cfg{TEXPATH};
unless(opendir(DIR,$dir)) {
Expand All @@ -401,7 +395,6 @@
system($cfg{MKTEXLSR});
}
}
}
}
print "Done. Have a lot of fun with LaTeX2HTML!\n";
exit 0;
Expand Down

0 comments on commit d50fa39

Please sign in to comment.