OoO En  cette fin de matinée  radieuse du samedi 17  novembre 2007, vers
11:45, je disais:

> I  have  just  uploaded unoconv  which  is  a  text converter  based  on
> OpenOffice. It provides a binary called odt2txt which conflicts with the
> one of your package.

> Can we rename each of  our binary to odt2txt.odt2txt and odt2txt.unoconv
> and uses update-alternatives to take over the name odt2txt? We should do
> the same for the manual page.

Here is a patch:

--- odt2txt-0.3/debian/rules	2007-11-17 11:59:38.000000000 +0100
+++ odt2txt-0.3-new/debian/rules	2007-11-17 11:55:34.000000000 +0100
@@ -4,3 +4,7 @@
 include /usr/share/cdbs/1/class/makefile.mk
 
 DEB_MAKE_INSTALL_TARGET := install DESTDIR=$(CURDIR)/debian/odt2txt/usr
+
+binary-install/odt2txt::
+	mv $(CURDIR)/debian/odt2txt/usr/bin/odt2txt $(CURDIR)/debian/odt2txt/usr/bin/odt2txt.odt2txt
+	mv $(CURDIR)/debian/odt2txt/usr/share/man/man1/odt2txt.1 $(CURDIR)/debian/odt2txt/usr/share/man/man1/odt2txt.odt2txt.1
--- /dev/null	2007-11-06 19:36:43.804501533 +0100
+++ odt2txt-0.3-new/debian/postinst	2007-11-17 11:56:21.000000000 +0100
@@ -0,0 +1,7 @@
+#!/bin/sh -e
+
+#DEBHELPER#
+
+update-alternatives --install /usr/bin/odt2txt odt2txt /usr/bin/odt2txt.odt2txt 100 \
+                    --slave /usr/share/man/man1/odt2txt.1.gz odt2txt.1.gz \
+                            /usr/share/man/man1/odt2txt.odt2txt.1.gz
--- /dev/null	2007-11-06 19:36:43.804501533 +0100
+++ odt2txt-0.3-new/debian/prerm	2007-11-17 11:56:29.000000000 +0100
@@ -0,0 +1,7 @@
+#!/bin/sh -e
+
+if [ "$1" = remove ] || [ "$1" = deconfigure ]; then
+	update-alternatives --remove odt2txt /usr/bin/odt2txt.odt2txt
+fi
+
+#DEBHELPER#
Feel free to use it.
-- 
panic("Foooooooood fight!");
        2.2.16 /usr/src/linux/drivers/scsi/aha1542.c

Reply via email to