From 31fc5d17fb0ce9b0f740be68e2f9e41785e46814 Mon Sep 17 00:00:00 2001 From: Guillaume Cottenceau Date: Wed, 19 Nov 2003 22:42:09 +0000 Subject: make_live_tree_boot replacing files by symlinks is responsible for fontconfig cache outdated, fix cache by touching files --- move/tools/fix-fc-cache.pl | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100755 move/tools/fix-fc-cache.pl (limited to 'move/tools/fix-fc-cache.pl') diff --git a/move/tools/fix-fc-cache.pl b/move/tools/fix-fc-cache.pl new file mode 100755 index 000000000..e0eb19fa0 --- /dev/null +++ b/move/tools/fix-fc-cache.pl @@ -0,0 +1,21 @@ +#!/usr/bin/perl + +# touch fontconfig cache files so that fc-cache will not slow down starting of drakx + +use MDK::Common; + +my $prefix = $ARGV[0] || '/tmp/live_tree'; + +my @conf = cat_("$prefix/etc/fonts/fonts.conf"); + +print "touching fontconfig cache files...\n"; +foreach my $line (@conf) { + while ($line =~ m|([^<]+)/dev/null`)) { + touch "$d/fonts.cache-1"; + } + } +} + -- cgit v1.2.1