[xml/sgml-commit] [SCM] linuxdoc-tools package for Debian. branch, master, updated. debian/0.9.66-9-gae91c9e
Agustin Martin Domingo
agmartin at debian.org
Mon Oct 10 13:33:30 UTC 2011
The following commit has been merged in the master branch:
commit cf2bc0782bb06318dab78339369be571ec2a89a7
Author: Agustin Martin Domingo <agmartin at debian.org>
Date: Mon Oct 10 13:20:31 2011 +0200
Enable ls-R update triggers when installed under dpkg control. Normal update otherwise.
For info about why we do not currently use dh_installtex and use instead
this hack, see
#600013: tex-common:
dpkg-reconfigure doesn't work on packages calling update-texmf-config
If maintainer script is run under dpkg control call update-texmf-config,
which will enable appropriate triggers. Otherwise (e.g. on reconfigure)
rebuild ls-R directly.
diff --git a/debian/linuxdoc-tools.postinst b/debian/linuxdoc-tools.postinst
new file mode 100644
index 0000000..a9e38d5
--- /dev/null
+++ b/debian/linuxdoc-tools.postinst
@@ -0,0 +1,26 @@
+#!/bin/sh
+
+set -e
+
+case $1 in
+ configure)
+ # For info about why we do not currently use dh_installtex, see
+ # #600013: tex-common:
+ # dpkg-reconfigure doesn't work on packages calling update-texmf-config
+ if [ "$DPKG_RUNNING_VERSION" ]; then
+ # If run under dpkg control call update-texmf-config, which
+ # will enable appropriate triggers
+ if which update-texmf-config 2>&1 > /dev/null; then
+ update-texmf-config lsr
+ fi
+ else
+ # Otherwise (e.g. on reconfigure) rebuild ls-R directly.
+ if which mktexlsr 2>&1 > /dev/null; then
+ mktexlsr /usr/share/texmf
+ fi
+ fi
+ ;;
+ *)
+esac
+
+#DEBHELPER#
\ No newline at end of file
diff --git a/debian/linuxdoc-tools.postrm b/debian/linuxdoc-tools.postrm
new file mode 100644
index 0000000..73da73a
--- /dev/null
+++ b/debian/linuxdoc-tools.postrm
@@ -0,0 +1,27 @@
+#!/bin/sh
+
+set -e
+
+case "$1" in
+ remove)
+ # For info about why we do not currently use dh_installtex, see
+ # #600013: tex-common:
+ # dpkg-reconfigure doesn't work on packages calling update-texmf-config
+ if [ "$DPKG_RUNNING_VERSION" ]; then
+ # If run under dpkg control call update-texmf-config, which
+ # will enable appropriate triggers
+ if which update-texmf-config 2>&1 > /dev/null; then
+ update-texmf-config lsr
+ fi
+ else
+ # Otherwise (e.g. on reconfigure) rebuild ls-R directly.
+ if which mktexlsr 2>&1 > /dev/null; then
+ mktexlsr /usr/share/texmf
+ fi
+ fi
+ ;;
+ *)
+esac
+
+#DEBHELPER#
+
diff --git a/debian/postinst b/debian/postinst
deleted file mode 100644
index e0cba75..0000000
--- a/debian/postinst
+++ /dev/null
@@ -1,14 +0,0 @@
-#!/bin/sh
-
-set -e
-
-case $1 in
- configure)
- if which mktexlsr 2>&1 > /dev/null; then
- mktexlsr /usr/share/texmf
- fi
- ;;
- *)
-esac
-
-#DEBHELPER#
\ No newline at end of file
diff --git a/debian/postrm b/debian/postrm
deleted file mode 100644
index 6fa1369..0000000
--- a/debian/postrm
+++ /dev/null
@@ -1,15 +0,0 @@
-#!/bin/sh
-
-set -e
-
-case "$1" in
- remove)
- if which mktexlsr 2>&1 > /dev/null ; then
- mktexlsr /usr/share/texmf
- fi
- ;;
- *)
-esac
-
-#DEBHELPER#
-
--
linuxdoc-tools package for Debian.
More information about the debian-xml-sgml-commit
mailing list