diff options
author | Sebastien Dupont <sdupont@mandriva.com> | 2001-10-11 17:23:01 +0000 |
---|---|---|
committer | Sebastien Dupont <sdupont@mandriva.com> | 2001-10-11 17:23:01 +0000 |
commit | b30de3d8b4bc81426c6985ffa55c62c8fb4fe09c (patch) | |
tree | bd8be163764845a316455b672a657ea09dcdff01 /perl-install/standalone/drakfont | |
parent | 082eec8ac6a9f4c81cb02cada1295bfc30588dc4 (diff) | |
download | drakx-b30de3d8b4bc81426c6985ffa55c62c8fb4fe09c.tar drakx-b30de3d8b4bc81426c6985ffa55c62c8fb4fe09c.tar.gz drakx-b30de3d8b4bc81426c6985ffa55c62c8fb4fe09c.tar.bz2 drakx-b30de3d8b4bc81426c6985ffa55c62c8fb4fe09c.tar.xz drakx-b30de3d8b4bc81426c6985ffa55c62c8fb4fe09c.zip |
improved....
Diffstat (limited to 'perl-install/standalone/drakfont')
-rwxr-xr-x | perl-install/standalone/drakfont | 29 |
1 files changed, 21 insertions, 8 deletions
diff --git a/perl-install/standalone/drakfont b/perl-install/standalone/drakfont index f45a54606..645711e26 100755 --- a/perl-install/standalone/drakfont +++ b/perl-install/standalone/drakfont @@ -215,18 +215,30 @@ sub put_font_dir { # xlsfonts | less pour verifier l'installation des polices. } - sub remove_fonts { -# rm_rf(@) -# recuperer le path pour regenerer le type1inst - mkdir_p($drakfont_dir); - cp_af(@font_list, $drakfont_dir); - system ("cd $drakfont_dir && type1inst && chkfontpath -a $drakfont_dir"); - - # xlsfonts | less pour verifier l'installation des polices. + my @list_dir; + my @toto; + foreach my $i (@font_list) { +# rm_rf($i); + print "nom complet : ".$i."\n"; + $i =~ s/\/\w*\.\w*//gi; + grep ( $i, (@list_dir)) or push @list_dir, $i; + print "nom rep : " . $_."\n" foreach @list_dir; + } + foreach my $i (@list_dir) { +# print listlength all("$i"); + if (listlength all("$i") > 2) { + # remove this directory of the de fontpath + system("chkfontpath -r $i") or print "PERL::system command failed during chkfontpath\n"; + } else { + # # do type1inst in this path + system("cd $i && type1inst") or print "PERL::system command failed during cd or type1inst\n"; + } + } } + $xlsfonts || $windows || @install || @uninstall ? backend_mod() : interactive_mode(); sub backend_mod { @@ -257,6 +269,7 @@ sub backend_mod { print "........Uninstall Specifics Fonts........\n\n"; search_installed_fonts_full_path(); search_dir_font_uninstall $_ foreach (@uninstall); + remove_fonts(); print "\n...............The End...................\n"; } } |