diff options
author | Patrick Lam <plam@MIT.EDU> | 2005-12-12 13:46:45 +0000 |
---|---|---|
committer | Patrick Lam <plam@MIT.EDU> | 2005-12-12 13:46:45 +0000 |
commit | 83b6739035fc17d97b8ce01d6a9b9ef6e78d694c (patch) | |
tree | 6d51fd7aa9147a705af2bba6aaca1824561ba7ee /fc-cache | |
parent | 368104c381815aa9a0c8c878f1d2be0cc5330f10 (diff) |
Improve error message when fc-cache can't write the cache. Add missing
slash. Reported by Behdad. Incorporate Behdad's patch to create
/var/cache/fontconfig when appropriate.
Diffstat (limited to 'fc-cache')
-rw-r--r-- | fc-cache/Makefile.am | 5 | ||||
-rw-r--r-- | fc-cache/fc-cache.c | 4 |
2 files changed, 8 insertions, 1 deletions
diff --git a/fc-cache/Makefile.am b/fc-cache/Makefile.am index 5f179f55..fb9a8c9f 100644 --- a/fc-cache/Makefile.am +++ b/fc-cache/Makefile.am @@ -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 diff --git a/fc-cache/fc-cache.c b/fc-cache/fc-cache.c index 388baa76..7acaafe4 100644 --- a/fc-cache/fc-cache.c +++ b/fc-cache/fc-cache.c @@ -209,7 +209,9 @@ scanDirs (FcStrList *list, FcConfig *config, char *program, FcBool force, FcBool if (!FcDirSave (set, subdirs, dir)) { - fprintf (stderr, "Can't save cache in \"%s\"\n", dir); + if (!ret) + fprintf (stderr, "Caches are currently saved to \"%s\"\n", PKGCACHEDIR); + fprintf (stderr, "Can't save cache for \"%s\"\n", dir); ret++; } } |