[Xword-commits] r101 - trunk/debian

terrencegf at garage.maemo.org terrencegf at garage.maemo.org
Thu May 22 04:52:29 EEST 2008


Author: terrencegf
Date: 2008-05-22 04:52:22 +0300 (Thu, 22 May 2008)
New Revision: 101

Added:
   trunk/debian/postinst
   trunk/debian/postrm
Log:
Added postrm and postinst to udpate icon cache as well as .puz handler.


Added: trunk/debian/postinst
===================================================================
--- trunk/debian/postinst	                        (rev 0)
+++ trunk/debian/postinst	2008-05-22 01:52:22 UTC (rev 101)
@@ -0,0 +1,14 @@
+#!/bin/sh
+if [ "$1" = "configure" ]; then
+  if [ -x "`which gtk-update-icon-cache 2>/dev/null`" ]; then
+    gtk-update-icon-cache -f /usr/share/icons/hicolor
+  fi
+
+  if [ -x "`which update-mime-database 2>/dev/null`" ]; then
+    update-mime-database /usr/share/mime
+  fi
+
+  if [ -x "`which update-desktop-database 2>/dev/null`" ]; then
+    update-desktop-database -q
+  fi
+fi

Added: trunk/debian/postrm
===================================================================
--- trunk/debian/postrm	                        (rev 0)
+++ trunk/debian/postrm	2008-05-22 01:52:22 UTC (rev 101)
@@ -0,0 +1,14 @@
+#!/bin/sh
+if [ "$1" = "remove" ]; then
+  if [ -x "`which gtk-update-icon-cache 2>/dev/null`" ]; then
+    gtk-update-icon-cache -f /usr/share/icons/hicolor
+  fi
+
+  if [ -x "`which update-mime-database 2>/dev/null`" ]; then
+    update-mime-database /usr/share/mime
+  fi
+
+  if [ -x "`which update-desktop-database 2>/dev/null`" ]; then
+    update-desktop-database -q
+  fi
+fi



More information about the Xword-commits mailing list