From de672f70f40cc7abce0963eea46790da0514c008 Mon Sep 17 00:00:00 2001 From: gregor herrmann Date: Sun, 21 May 2006 14:21:10 +0000 Subject: [PATCH] add doc-base support to libmimetic-doc --- debian/changelog | 3 ++- debian/libmimetic-dev.postinst | 43 ++++++++++++++++++++++++++++++++++ debian/libmimetic-dev.prerm | 43 ++++++++++++++++++++++++++++++++++ debian/libmimetic-doc.install | 1 + debian/mimetic-doc | 8 +++++++ 5 files changed, 97 insertions(+), 1 deletion(-) create mode 100644 debian/libmimetic-dev.postinst create mode 100644 debian/libmimetic-dev.prerm create mode 100644 debian/libmimetic-doc.install create mode 100644 debian/mimetic-doc diff --git a/debian/changelog b/debian/changelog index 4cb716a..7998885 100644 --- a/debian/changelog +++ b/debian/changelog @@ -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 Sat, 6 May 2006 00:44:45 +0200 + -- gregor herrmann 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 index 0000000..31f91cd --- /dev/null +++ b/debian/libmimetic-dev.postinst @@ -0,0 +1,43 @@ +#! /bin/sh +# postinst script for fullquottel +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `configure' +# * `abort-upgrade' +# * `abort-remove' `in-favour' +# +# * `abort-deconfigure' `in-favour' +# `removing' +# +# 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 index 0000000..75c8e47 --- /dev/null +++ b/debian/libmimetic-dev.prerm @@ -0,0 +1,43 @@ +#! /bin/sh +# prerm script for fullquottel +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `remove' +# * `upgrade' +# * `failed-upgrade' +# * `remove' `in-favour' +# * `deconfigure' `in-favour' +# `removing' +# +# 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 index 0000000..645d085 --- /dev/null +++ b/debian/libmimetic-doc.install @@ -0,0 +1 @@ +../mimetic-doc usr/share/doc-base/ diff --git a/debian/mimetic-doc b/debian/mimetic-doc new file mode 100644 index 0000000..c1d6649 --- /dev/null +++ b/debian/mimetic-doc @@ -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 -- 2.30.2