summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2003-09-23 21:36:57 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2003-09-23 21:36:57 +0000
commit64b8c4867e4bae1c43af9a8dfaee73f3c68887df (patch)
tree7719141ff46ced9a4b325cf22f3880c402462f3a /perl-install
parent79b5a20698ee4d4f1b07da9fceebc1d549b6a548 (diff)
downloaddrakx-backup-do-not-use-64b8c4867e4bae1c43af9a8dfaee73f3c68887df.tar
drakx-backup-do-not-use-64b8c4867e4bae1c43af9a8dfaee73f3c68887df.tar.gz
drakx-backup-do-not-use-64b8c4867e4bae1c43af9a8dfaee73f3c68887df.tar.bz2
drakx-backup-do-not-use-64b8c4867e4bae1c43af9a8dfaee73f3c68887df.tar.xz
drakx-backup-do-not-use-64b8c4867e4bae1c43af9a8dfaee73f3c68887df.zip
clean fonts renaming and make it log renames (through explanations)MDK92
Diffstat (limited to 'perl-install')
-rwxr-xr-xperl-install/standalone/drakfont7
1 files 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..."));