[Pkg-lyx-devel] svn commit: r323 - in /latex-xft-fonts/trunk/debian: changelog postinst postrm

pelle at users.alioth.debian.org pelle at users.alioth.debian.org
Wed Jun 20 14:26:04 UTC 2007


Author: pelle
Date: Wed Jun 20 14:26:04 2007
New Revision: 323

URL: http://svn.debian.org/wsvn/pkg-lyx/?sc=1&rev=323
Log:
* Split out postinst and postrm from debian/packages

Added:
    latex-xft-fonts/trunk/debian/postinst
    latex-xft-fonts/trunk/debian/postrm
Modified:
    latex-xft-fonts/trunk/debian/changelog

Modified: latex-xft-fonts/trunk/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-lyx/latex-xft-fonts/trunk/debian/changelog?rev=323&op=diff
==============================================================================
--- latex-xft-fonts/trunk/debian/changelog (original)
+++ latex-xft-fonts/trunk/debian/changelog Wed Jun 20 14:26:04 2007
@@ -6,8 +6,9 @@
   * Split out and update debian/copyright
   * Rewrote debian/rules using debhelper instead of yada.
   * Bump Standards-Version to 3.7.2
+  * Split out postinst and postrm from debian/packages
 
- -- Per Olofsson <pelle at debian.org>  Wed, 20 Jun 2007 14:40:30 +0100
+ -- Per Olofsson <pelle at debian.org>  Wed, 20 Jun 2007 15:25:58 +0100
 
 latex-xft-fonts (0.1-6) unstable; urgency=medium
 

Added: latex-xft-fonts/trunk/debian/postinst
URL: http://svn.debian.org/wsvn/pkg-lyx/latex-xft-fonts/trunk/debian/postinst?rev=323&op=file
==============================================================================
--- latex-xft-fonts/trunk/debian/postinst (added)
+++ latex-xft-fonts/trunk/debian/postinst Wed Jun 20 14:26:04 2007
@@ -1,0 +1,17 @@
+#!/bin/sh -e
+
+if [ "$1" = "configure" ]; then
+	if [ -f /etc/defoma/hints/$PACKAGE.hints ]; then
+		defoma-font -q reregister-all /etc/defoma/hints/$PACKAGE.hints
+	fi
+	if [ -x /usr/bin/fc-cache ]; then
+	# Force regeneration of all fontconfig cache files for latex-xft-fonts.
+        # The redirect is because fc-cache is giving warnings about ~/fc.cache
+        # the HOME setting is to avoid problems if HOME hasn't been reset
+		printf "Regenerating fonts cache..." 
+		HOME=/root /usr/bin/fc-cache -f -v /usr/share/fonts/truetype/latex-xft-fonts 1>/var/log/fontconfig.log 2>&1 || (printf "failed; see /var/log/fontconfig.log for more information\n"; exit 1)
+		printf "done.\n"
+	fi
+fi
+
+#DEBHELPER#

Added: latex-xft-fonts/trunk/debian/postrm
URL: http://svn.debian.org/wsvn/pkg-lyx/latex-xft-fonts/trunk/debian/postrm?rev=323&op=file
==============================================================================
--- latex-xft-fonts/trunk/debian/postrm (added)
+++ latex-xft-fonts/trunk/debian/postrm Wed Jun 20 14:26:04 2007
@@ -1,0 +1,18 @@
+#!/bin/sh -e
+
+if [ "$1" = "remove" ]; then
+    if [ -f /etc/defoma/hints/$PACKAGE.hints ]; then
+        defoma-font -qt purge-all /etc/defoma/hints/$PACKAGE.hints
+    fi
+    if [ -x /usr/bin/fc-cache ]; then
+        # Force regeneration of all fontconfig cache files for latex-xft-fonts.
+        # The redirect is because fc-cache is giving warnings about ~/fc.cache
+        # the HOME setting is to avoid problems if HOME hasn't been reset
+        printf "Regenerating fonts cache..." 
+        HOME=/root /usr/bin/fc-cache -f -v -s 1>/var/log/fontconfig.log 2>&1 || (printf "failed; see /var/log/fontconfig.log for more information\n"; exit 1)
+        rm -f /usr/share/fonts/truetype/latex-xft-fonts/fonts.cache*
+        printf "done.\n"
+    fi
+fi
+
+#DEBHELPER#




More information about the Pkg-lyx-devel mailing list