[Fontconfig] Creating cachedir

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I'm testing the cache dir.  First, the following error message is
not quite accurate anymore:

[behdad@home fc-cache]$ fc-cache
Can't save cache in "/home/behdad/.fonts"
Can't save cache in "/home/behdad/.fonts/farsifonts-0.4"

A simple fix is to change "in" to "for", or better, print out the
cache directory (once?).

As for creating the cache dir, the simplest way is:

Index: fc-cache/Makefile.am
===================================================================
RCS file: /cvs/fontconfig/fontconfig/fc-cache/Makefile.am,v
retrieving revision 1.10.4.1
diff -u -p -r1.10.4.1 Makefile.am
--- fc-cache/Makefile.am        9 Dec 2005 16:36:45 -0000       1.10.4.1
+++ fc-cache/Makefile.am        10 Dec 2005 07:17:34 -0000
@@ -29,6 +29,11 @@ SGML = ${FC_CACHE_SRC}/fc-cache.sgml

 AM_CPPFLAGS = -DPKGCACHEDIR='"${pkgcachedir}"'

+pkgcache_DATA=stamp
+
+stamp:
+       touch $@
+
 INCLUDES=-I${top_srcdir} $(FREETYPE_CFLAGS)

 bin_PROGRAMS=fc-cache


which abuses the install features of automake to create the
directory.


--behdad
http://behdad.org/

"Commandment Three says Do Not Kill, Amendment Two says Blood Will Spill"
	-- Dan Bern, "New American Language"

[Index of Archives]     [Fedora Fonts]     [Fedora Users]     [Fedora Cloud]     [Kernel]     [Fedora Packaging]     [Fedora Desktop]     [PAM]     [Gimp Graphics Editor]     [Yosemite News]

  Powered by Linux