add doc-base support to libmimetic-doc
authorgregor herrmann <gregoa@debian.org>
Sun, 21 May 2006 14:21:10 +0000 (14:21 -0000)
committergregor herrmann <gregoa@debian.org>
Sun, 21 May 2006 14:21:10 +0000 (14:21 -0000)
debian/changelog
debian/libmimetic-dev.postinst [new file with mode: 0644]
debian/libmimetic-dev.prerm [new file with mode: 0644]
debian/libmimetic-doc.install [new file with mode: 0644]
debian/mimetic-doc [new file with mode: 0644]

index 4cb716a8021d341b1819b4a312504c0492a52f87..7998885dc1aa680897e1b2de0264207cdcec296a 100644 (file)
@@ -3,8 +3,9 @@ mimetic (0.9.1-2) unstable; urgency=low
   * Update to Standards-Version: 3.7.2 (no changes required).
   * Set different short descriptions for the three packages
     (runtime, development, documentation).
+  * Register documentation with doc-base.
 
- -- gregor herrmann <gregor+debian@comodo.priv.at>  Sat,  6 May 2006 00:44:45 +0200
+ -- gregor herrmann <gregor+debian@comodo.priv.at>  Sun, 21 May 2006 16:15:38 +0200
 
 mimetic (0.9.1-1) unstable; urgency=low
 
diff --git a/debian/libmimetic-dev.postinst b/debian/libmimetic-dev.postinst
new file mode 100644 (file)
index 0000000..31f91cd
--- /dev/null
@@ -0,0 +1,43 @@
+#! /bin/sh
+# postinst script for fullquottel
+#
+# see: dh_installdeb(1)
+
+set -e
+
+# summary of how this script can be called:
+#        * <postinst> `configure' <most-recently-configured-version>
+#        * <old-postinst> `abort-upgrade' <new version>
+#        * <conflictor's-postinst> `abort-remove' `in-favour' <package>
+#          <new-version>
+#        * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
+#          <failed-install-package> <version> `removing'
+#          <conflicting-package> <version>
+# for details, see http://www.debian.org/doc/debian-policy/ or
+# the debian-policy package
+#
+
+case "$1" in
+    configure)
+      if which install-docs >/dev/null 2>&1; then
+        install-docs -i /usr/share/doc-base/mimetic-doc
+      fi
+    ;;
+
+    abort-upgrade|abort-remove|abort-deconfigure)
+    ;;
+
+    *)
+      echo "postinst called with unknown argument \`$1'" >&2
+      exit 1
+    ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
+
+
diff --git a/debian/libmimetic-dev.prerm b/debian/libmimetic-dev.prerm
new file mode 100644 (file)
index 0000000..75c8e47
--- /dev/null
@@ -0,0 +1,43 @@
+#! /bin/sh
+# prerm script for fullquottel
+#
+# see: dh_installdeb(1)
+
+set -e
+
+# summary of how this script can be called:
+#        * <prerm> `remove'
+#        * <old-prerm> `upgrade' <new-version>
+#        * <new-prerm> `failed-upgrade' <old-version>
+#        * <conflictor's-prerm> `remove' `in-favour' <package> <new-version>
+#        * <deconfigured's-prerm> `deconfigure' `in-favour'
+#          <package-being-installed> <version> `removing'
+#          <conflicting-package> <version>
+# for details, see http://www.debian.org/doc/debian-policy/ or
+# the debian-policy package
+
+
+case "$1" in
+    remove|upgrade|deconfigure)
+      if which install-docs >/dev/null 2>&1; then
+        install-docs -r mimetic-doc
+      fi
+    ;;
+
+    failed-upgrade)
+    ;;
+    
+    *)
+      echo "prerm called with unknown argument \`$1'" >&2
+      exit 1
+    ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
+
+
diff --git a/debian/libmimetic-doc.install b/debian/libmimetic-doc.install
new file mode 100644 (file)
index 0000000..645d085
--- /dev/null
@@ -0,0 +1 @@
+../mimetic-doc usr/share/doc-base/
diff --git a/debian/mimetic-doc b/debian/mimetic-doc
new file mode 100644 (file)
index 0000000..c1d6649
--- /dev/null
@@ -0,0 +1,8 @@
+Document: mimetic-doc
+Title: mimetic Documentation
+Abstract: Documentation for the mimetic library
+Section: Apps/Net
+
+Format: HTML
+Index: /usr/share/doc/libmimetic-doc/html/index.html
+FIles: /usr/share/doc/libmimetic-doc/html/*.html