From 64b8c4867e4bae1c43af9a8dfaee73f3c68887df Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Tue, 23 Sep 2003 21:36:57 +0000 Subject: clean fonts renaming and make it log renames (through explanations) --- perl-install/standalone/drakfont | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/perl-install/standalone/drakfont b/perl-install/standalone/drakfont index b4db98bf2..5f3dffa5c 100755 --- a/perl-install/standalone/drakfont +++ b/perl-install/standalone/drakfont @@ -339,8 +339,11 @@ sub put_font_dir() { } interactive_progress($pbar1, 0.01, N("done")); interactive_progress($pbar2, 0.10, N("True Type fonts installation")); - glob("$drakfont_dir/tmp/tmp/*.TTF") - and system('cd ' . $drakfont_dir . '/tmp/tmp ; for foo in *.TTF; do mv $foo `basename $foo .TTF`.ttf; done'); + foreach my $font (glob("$drakfont_dir/tmp/tmp/*.TTF")) { + my $newfont = $font; + $newfont =~ s/\.TTF$/.ttf/; + rename($font, $newfont); + } system('cd ' . $drakfont_dir . '/tmp/tmp && cp *.ttf ../../ttf; chmod 644 ../../ttf/*ttf'); interactive_progress($pbar2, 0.20, N("please wait during ttmkfdir...")); -- cgit v1.2.1