summaryrefslogtreecommitdiffstats
path: root/move/tools/fix-fc-cache.pl
diff options
context:
space:
mode:
authorMystery Man <unknown@mandriva.org>2005-09-01 20:27:41 +0000
committerMystery Man <unknown@mandriva.org>2005-09-01 20:27:41 +0000
commitf027d873e1c6f4b372b541cc351c71820a9063cd (patch)
tree4c1914e76177c18cf0a45829bbdf7eb0a92c2435 /move/tools/fix-fc-cache.pl
parent5d83bfe6f6b331df65d493a78e9ed2f1b30a2464 (diff)
downloaddrakx-backup-do-not-use-f027d873e1c6f4b372b541cc351c71820a9063cd.tar
drakx-backup-do-not-use-f027d873e1c6f4b372b541cc351c71820a9063cd.tar.gz
drakx-backup-do-not-use-f027d873e1c6f4b372b541cc351c71820a9063cd.tar.bz2
drakx-backup-do-not-use-f027d873e1c6f4b372b541cc351c71820a9063cd.tar.xz
drakx-backup-do-not-use-f027d873e1c6f4b372b541cc351c71820a9063cd.zip
This commit was manufactured by cvs2svn to create tagV10_3_0_51mdk
'V10_3_0_51mdk'.
Diffstat (limited to 'move/tools/fix-fc-cache.pl')
-rwxr-xr-xmove/tools/fix-fc-cache.pl21
1 files changed, 0 insertions, 21 deletions
diff --git a/move/tools/fix-fc-cache.pl b/move/tools/fix-fc-cache.pl
deleted file mode 100755
index 720c94141..000000000
--- a/move/tools/fix-fc-cache.pl
+++ /dev/null
@@ -1,21 +0,0 @@
-#!/usr/bin/perl
-
-# touch fontconfig cache files so that fc-cache will not slow down starting of drakx
-
-use MDK::Common;
-
-my ($prefix) = @ARGV or die "usage: $0 <prefix>\n";
-
-my @conf = cat_("$prefix/etc/fonts/fonts.conf");
-
-print "touching fontconfig cache files...\n";
-foreach my $line (@conf) {
- while ($line =~ m|<dir>([^<]+)</dir|g) {
- my $dir = $1;
- $dir =~ m|^/| or next;
- foreach my $d (chomp_(`find $prefix$dir -type d 2>/dev/null`)) {
- touch "$d/fonts.cache-1";
- }
- }
-}
-