[gnome-icon-theme-symbolic] Run gtk-update-icon-cache after installing



commit bb9239c7f268031bfb31bee995b8dbe2055068c9
Author: Dan Winship <danw gnome org>
Date:   Thu Sep 23 15:58:22 2010 -0400

    Run gtk-update-icon-cache after installing
    
    https://bugzilla.gnome.org/show_bug.cgi?id=630465

 Makefile.am  |    3 +++
 configure.ac |    5 +++++
 2 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/Makefile.am b/Makefile.am
index 5149ccc..bdbcec4 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -18,6 +18,9 @@ install-data-local:
 		touch $(DESTDIR)$(themedir); \
 	fi
 
+install-data-hook:
+	$(GTK_UPDATE_ICON_CACHE) -q $(DESTDIR)$(themedir)
+
 EXTRA_DIST = gnome
 
 MAINTAINERCLEANFILES =			\
diff --git a/configure.ac b/configure.ac
index e1193fe..2d148a1 100644
--- a/configure.ac
+++ b/configure.ac
@@ -47,6 +47,11 @@ if test "x$enable_mapping" != "xno"; then
 fi
 AC_SUBST(ICONMAP)
 
+AC_PATH_PROG(GTK_UPDATE_ICON_CACHE, gtk-update-icon-cache)
+if test -z "$GTK_UPDATE_ICON_CACHE"; then
+    AC_MSG_ERROR([Could not find gtk-update-icon-cache])
+fi
+
 # need git, icontool, and inkscape for rendering
 allow_rendering=yes
 AC_PATH_PROG([GIT], [git], [false])



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