From 5f0d2865f5e6d01e0bb4ab32d70b637518e26fa5 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Wed, 26 Apr 2000 14:27:36 +0000 Subject: no_comment --- perl-install/install_steps.pm | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'perl-install/install_steps.pm') diff --git a/perl-install/install_steps.pm b/perl-install/install_steps.pm index 6e244322f..71ae77d70 100644 --- a/perl-install/install_steps.pm +++ b/perl-install/install_steps.pm @@ -384,13 +384,15 @@ Consoles 1,3,4,7 may also contain interesting information"; my $hasttf; my $dest = "$o->{prefix}/usr/X11R6/lib/X11/fonts/drakfont"; foreach (map { $_->{mntpoint} } grep { isFat($_) } @{$o->{fstab}}) { - my $d = "$_/windows/fonts"; - -d "$o->{prefix}$d" or next; - unless ($hasttf) { - mkdir $dest, 0755; - $hasttf = 1; + foreach my $d (grep { m|/win|i } glob_("$o->{prefix}$_/*")) { + $d .= "/fonts"; + -d "$o->{prefix}$d" or next; + unless ($hasttf) { + mkdir $dest, 0755; + $hasttf = 1; + } + /(.*)\.ttf/i and symlink "$d/$_", "$dest/$1.ttf" foreach grep { /\.ttf/i } all("$o->{prefix}$d"); } - /(.*)\.ttf/i and symlink "$d/$_", "$dest/$1.ttf" foreach grep { /\.ttf/i } all("$o->{prefix}$d"); } run_program::rooted($o->{prefix}, "ttmkfdir", "-d", $dest, "-o", "$dest/fonts.dir") if $hasttf; -- cgit v1.2.1