| @@ -1,26 +1,48 @@ | | | @@ -1,26 +1,48 @@ |
1 | $NetBSD: patch-ab,v 1.4 2017/09/06 16:49:47 wiz Exp $ | | 1 | $NetBSD: patch-ab,v 1.5 2018/08/19 18:03:30 dholland Exp $ |
2 | | | 2 | |
3 | (the first half) | | 3 | (the last bit) |
4 | date: 2006-04-07 11:23:19 +0900; author: minskim; state: Exp; | | 4 | date: 2006-04-07 11:23:19 +0900; author: minskim; state: Exp; |
5 | Use tex infrastructure to run mktexlsr for texmf-local only. | | 5 | Use tex infrastructure to run mktexlsr for texmf-local only. |
6 | | | 6 | |
7 | (second half) | | 7 | (the rest) |
8 | date: 2011-07-09 23:19:30 +0900; author: bsiegert; state: Exp; lines: +18 -3; | | 8 | Add user-destdir support. |
9 | Add user-destdir support. Almost trivial except for one bug in the install | | | |
10 | script. | | | |
11 | | | 9 | |
12 | --- config/install.pl.orig 2002-11-29 11:49:01.000000000 +0000 | | 10 | --- config/install.pl.orig 2016-04-19 16:52:35.000000000 +0000 |
13 | +++ config/install.pl | | 11 | +++ config/install.pl |
| | | 12 | @@ -294,15 +294,15 @@ my @icon_types = $cfg{'IMAGE_TYPES'} ? |
| | | 13 | my $iconrx = join('|', @icon_types); |
| | | 14 | |
| | | 15 | my $dest1 = "$cfg{'SHLIBDIR'}${dd}icons"; |
| | | 16 | -if((-d $dest1 && !-w _) || (-d $cfg{'SHLIBDIR'} && !-w _)) { |
| | | 17 | - print STDERR "Error: Cannot install icons in '$dest1': No write permission.\n"; |
| | | 18 | - $dest1 = ''; |
| | | 19 | -} |
| | | 20 | +#if((-d $dest1 && !-w _) || (-d $cfg{'SHLIBDIR'} && !-w _)) { |
| | | 21 | +# print STDERR "Error: Cannot install icons in '$dest1': No write permission.\n"; |
| | | 22 | +# $dest1 = ''; |
| | | 23 | +#} |
| | | 24 | my $dest2 = $cfg{'ICONSTORAGE'} || ''; |
| | | 25 | -if(-d $dest2 && !-w $dest2) { |
| | | 26 | - print STDERR "Error: Cannot install icons in '$dest2': No write permission.\n"; |
| | | 27 | - $dest2 = ''; |
| | | 28 | -} |
| | | 29 | +#if(-d $dest2 && !-w $dest2) { |
| | | 30 | +# print STDERR "Error: Cannot install icons in '$dest2': No write permission.\n"; |
| | | 31 | +# $dest2 = ''; |
| | | 32 | +#} |
| | | 33 | my $dir = "icons"; |
| | | 34 | unless(opendir(DIR,$dir)) { |
| | | 35 | print STDERR qq{Error: Could not read directory "$dir": $!\n}; |
14 | @@ -372,12 +372,6 @@ foreach $item (sort keys %Install_items) | | 36 | @@ -372,12 +372,6 @@ foreach $item (sort keys %Install_items) |
15 | | | 37 | |
16 | if($cfg{TEXPATH}) { | | 38 | if($cfg{TEXPATH}) { |
17 | print "\nNote: trying to install LaTeX2HTML style files in TeX directory tree\n ($cfg{TEXPATH})\n"; | | 39 | print "\nNote: trying to install LaTeX2HTML style files in TeX directory tree\n ($cfg{TEXPATH})\n"; |
18 | - unless(mkpath($cfg{TEXPATH})) { | | 40 | - unless(mkpath($cfg{TEXPATH})) { |
19 | - #my $testpath = $cfg{TEXPATH}; # to strip (latex2)html | | 41 | - #my $testpath = $cfg{TEXPATH}; # to strip (latex2)html |
20 | - #$testpath =~ s/[$dd$dd][^$dd$dd]*$//; | | 42 | - #$testpath =~ s/[$dd$dd][^$dd$dd]*$//; |
21 | - #if((-d $cfg{TEXPATH} && !-w _) || (-d $testpath && !-w _)) { | | 43 | - #if((-d $cfg{TEXPATH} && !-w _) || (-d $testpath && !-w _)) { |
22 | - print STDERR "\nError: Cannot install LaTeX2HTML style files in $cfg{TEXPATH}\n"; | | 44 | - print STDERR "\nError: Cannot install LaTeX2HTML style files in $cfg{TEXPATH}\n"; |
23 | - } else { | | 45 | - } else { |
24 | my $dir = 'texinputs'; | | 46 | my $dir = 'texinputs'; |
25 | my $dest = $cfg{TEXPATH}; | | 47 | my $dest = $cfg{TEXPATH}; |
26 | unless(opendir(DIR,$dir)) { | | 48 | unless(opendir(DIR,$dir)) { |