From 5ec1354caaa5c47a2e11bf6e1354cf2d18c354b3 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Mon, 24 Sep 2007 14:51:25 +0000 Subject: (dir_created) configure fontpath.d for drakfont --- perl-install/standalone/drakfont | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'perl-install/standalone') diff --git a/perl-install/standalone/drakfont b/perl-install/standalone/drakfont index 0b30faf29..136c3c392 100755 --- a/perl-install/standalone/drakfont +++ b/perl-install/standalone/drakfont @@ -282,7 +282,12 @@ sub print_list() { sub dir_created() { return if $::testing; - do { my $dir = "$drakfont_dir/$_"; -e $dir or mkdir_p($dir) } foreach qw(Type1 ttf otf ttc tmp/ttf tmp/Type1 tmp/tmp); + foreach (qw(Type1 ttf otf ttc tmp/ttf tmp/Type1 tmp/tmp)) { + my $dir = "$drakfont_dir/$_"; + next if -e $dir; + mkdir_p($dir); + symlink($dir, "$fontpathd_dir/drakfont_$_:pri=50"); + } } -- cgit v1.2.1