summaryrefslogtreecommitdiffstats
path: root/perl-install/install_steps.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2000-04-26 14:27:36 +0000
committerPascal Rigaux <pixel@mandriva.com>2000-04-26 14:27:36 +0000
commit5f0d2865f5e6d01e0bb4ab32d70b637518e26fa5 (patch)
tree6fcb1061f61245f6733c6fc8d17683ee9ce1f2ca /perl-install/install_steps.pm
parent893a0a70abc449d8dad2212923b4eed33d7c169d (diff)
downloaddrakx-backup-do-not-use-5f0d2865f5e6d01e0bb4ab32d70b637518e26fa5.tar
drakx-backup-do-not-use-5f0d2865f5e6d01e0bb4ab32d70b637518e26fa5.tar.gz
drakx-backup-do-not-use-5f0d2865f5e6d01e0bb4ab32d70b637518e26fa5.tar.bz2
drakx-backup-do-not-use-5f0d2865f5e6d01e0bb4ab32d70b637518e26fa5.tar.xz
drakx-backup-do-not-use-5f0d2865f5e6d01e0bb4ab32d70b637518e26fa5.zip
no_comment
Diffstat (limited to 'perl-install/install_steps.pm')
-rw-r--r--perl-install/install_steps.pm14
1 files changed, 8 insertions, 6 deletions
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;