./packages/libreoffice/3.3.0/experimental r2135: remove some obsolete maintainer scripts
------------------------------------------------------------
revno: 2135
committer: Rene Engelhard <rene@debian.org>
branch nick: debian
timestamp: Tue 2010-10-12 23:22:49 +0200
message:
remove some obsolete maintainer scripts
removed:
libreoffice-base.preinst.in
libreoffice-dev.preinst.in
libreoffice-java-common.preinst.in
libreoffice-mysql-connector.preinst.in
libreoffice-officebean.preinst.in
libreoffice-pdfimport.preinst.in
libreoffice-presentation-minimizer.preinst.in
libreoffice-presenter-console.preinst.in
libreoffice-report-builder.preinst.in
libreoffice-wiki-publisher.preinst.in
libreoffice-writer.preinst.in
libreoffice.postinst.in
libreoffice.preinst.in
modified:
libreoffice-common.preinst.in
=== removed file 'libreoffice-base.preinst.in'
--- a/libreoffice-base.preinst.in 2010-10-12 00:40:55 +0000
+++ b/libreoffice-base.preinst.in 1970-01-01 00:00:00 +0000
@@ -1,17 +0,0 @@
-#!/bin/sh
-
-set -e
-
-#INCLUDE_SHELL_LIB#
-
-case "$1" in install|upgrade)
- if [ -L /usr/lib/libreoffice/program/classes ]; then
- rm /usr/lib/libreoffice/program/classes
- mkdir /usr/lib/libreoffice/program/classes
- fi
- ;;
-esac
-
-#DEBHELPER#
-
-exit 0
=== modified file 'libreoffice-common.preinst.in'
--- a/libreoffice-common.preinst.in 2010-10-12 00:40:55 +0000
+++ b/libreoffice-common.preinst.in 2010-10-12 21:22:49 +0000
@@ -4,46 +4,17 @@
#INCLUDE_SHELL_LIB#
-case "$1" in install|upgrade)
- if dpkg --compare-versions "$2" lt "2.0.0-2"; then
- rm_conffile "/etc/bash_completion.d/openoffice" $DPKG_MAINTSCRIPT_PACKAGE
- rm_conffile "/etc/openoffice/autoresponse.conf" $DPKG_MAINTSCRIPT_PACKAGE
- rm_conffile "/etc/openoffice/openoffice.conf" $DPKG_MAINTSCRIPT_PACKAGE
- fi
- if dpkg --compare-versions "$2" lt "2.0.2-2"; then
- rm_conffile "/etc/bash_completion.d/ooo-wrapper.sh" $DPKG_MAINTSCRIPT_PACKAGE
- fi
- # obsolete. no conffile.
- rm -f /etc/openoffice/dictionary.lst /etc/openoffice/dictionary.lst-old
-
- # try to recover. No idea whether that completely helps but it
- # at least gets the bogus dir away.
- if [ -e /usr/lib/libreoffice/basis-link -a \
- ! -L /usr/lib/libreoffice/basis-link ] && \
- [ -e /usr/lib/libreoffice/basis-link/share/config/javasettingsunopkginstall.xml ]; then
- rm -f /usr/lib/libreoffice/basis-link/share/config/javasettingsunopkginstall.xml
- rmdir --ignore-fail-on-non-empty /usr/lib/libreoffice/basis-link/share/config
- rmdir --ignore-fail-on-non-empty /usr/lib/libreoffice/basis-link/share
- rmdir --ignore-fail-on-non-empty /usr/lib/libreoffice/basis-link
- fi
-
+case "$1" in install)
# move a already-filled in javasettingsunopkginstall.xml to the new
# location on upgrades
if [ ! -e `echo /@OOBASISDIR@ | sed -e s/usr/var/`/share/config/javasettingsunopkginstall.xml ]; then
if [ ! -d `echo /@OOBASISDIR@ | sed -e s/usr/var/`/share/config ]; then
mkdir -p `echo /@OOBASISDIR@ | sed -e s/usr/var/`/share/config
fi
- if [ -e /var/lib/openoffice/javasettingsunopkginstall.xml ]; then
- mv /var/lib/openoffice/javasettingsunopkginstall.xml \
- `echo /@OOBASISDIR@ | sed -e s/usr/var/`/share/config/javasettingsunopkginstall.xml
- fi
- if [ -e /var/lib/openoffice/share/config/javasettingsunopkginstall.xml ]; then
- mv /var/lib/openoffice/share/config/javasettingsunopkginstall.xml \
- `echo /@OOBASISDIR@ | sed -e s/usr/var/`/share/config/javasettingsunopkginstall.xml
- fi
- else
- rm -f /var/lib/openoffice/javasettingsunopkginstall.xml
- rm -f /var/lib/openoffice/share/config/javasettingsunopkginstall.xml
+ if [ -e `echo /@OOBASISDIR@ | sed -e s/usr/var/ | sed -e s/libre/open/`/config/javasettingsunopkginstall.xml ]; then
+ mv `echo /@OOBASISDIR@ | sed -e s/usr/var/ | sed -e s/libre/open/`/share/config/javasettingsunopkginstall.xml \
+ `echo /@OOBASISDIR@ | sed -e s/usr/var/`/share/config/javasettingsunopkginstall.xml
+ fi
fi
;;
esac
=== removed file 'libreoffice-dev.preinst.in'
--- a/libreoffice-dev.preinst.in 2010-10-12 00:40:55 +0000
+++ b/libreoffice-dev.preinst.in 1970-01-01 00:00:00 +0000
@@ -1,16 +0,0 @@
-#!/bin/sh
-
-set -e
-
-#INCLUDE_SHELL_LIB#
-
-case "$1" in install|upgrade)
- if [ -L /usr/lib/libreoffice/sdk/classes/com ]; then
- rm /usr/lib/libreoffice/sdk/classes/com
- fi
- ;;
-esac
-
-#DEBHELPER#
-
-exit 0
=== removed file 'libreoffice-java-common.preinst.in'
--- a/libreoffice-java-common.preinst.in 2010-10-12 00:40:55 +0000
+++ b/libreoffice-java-common.preinst.in 1970-01-01 00:00:00 +0000
@@ -1,17 +0,0 @@
-#!/bin/sh
-
-set -e
-
-#INCLUDE_SHELL_LIB#
-
-case "$1" in install|upgrade)
- if [ -L /usr/lib/libreoffice/program/classes ]; then
- rm /usr/lib/libreoffice/program/classes
- mkdir /usr/lib/libreoffice/program/classes
- fi
- ;;
-esac
-
-#DEBHELPER#
-
-exit 0
=== removed file 'libreoffice-mysql-connector.preinst.in'
--- a/libreoffice-mysql-connector.preinst.in 2010-10-12 00:40:55 +0000
+++ b/libreoffice-mysql-connector.preinst.in 1970-01-01 00:00:00 +0000
@@ -1,17 +0,0 @@
-#!/bin/sh
-
-set -e
-
-#INCLUDE_SHELL_LIB#
-
-case "$1" in
- upgrade)
- if dpkg --compare-versions `echo $2 | cut -d+ -f2` lt OOo3.3.0~; then
- remove_extension com.sun.star.mysql-connector-ooo-$PLATFORMID
- fi
- ;;
-esac
-
-#DEBHELPER#
-
-exit 0
=== removed file 'libreoffice-officebean.preinst.in'
--- a/libreoffice-officebean.preinst.in 2010-10-12 00:40:55 +0000
+++ b/libreoffice-officebean.preinst.in 1970-01-01 00:00:00 +0000
@@ -1,17 +0,0 @@
-#!/bin/sh
-
-set -e
-
-#INCLUDE_SHELL_LIB#
-
-case "$1" in install|upgrade)
- if [ -L /usr/lib/libreoffice/program/classes ]; then
- rm /usr/lib/libreoffice/program/classes
- mkdir /usr/lib/libreoffice/program/classes
- fi
- ;;
-esac
-
-#DEBHELPER#
-
-exit 0
=== removed file 'libreoffice-pdfimport.preinst.in'
--- a/libreoffice-pdfimport.preinst.in 2010-10-12 00:40:55 +0000
+++ b/libreoffice-pdfimport.preinst.in 1970-01-01 00:00:00 +0000
@@ -1,17 +0,0 @@
-#!/bin/sh
-
-set -e
-
-#INCLUDE_SHELL_LIB#
-
-case "$1" in
- upgrade)
- if dpkg --compare-versions `echo $2 | cut -d+ -f2` lt OOo3.3.0~; then
- remove_extension com.sun.star.PDFImport-$PLATFORMID
- fi
- ;;
-esac
-
-#DEBHELPER#
-
-exit 0
=== removed file 'libreoffice-presentation-minimizer.preinst.in'
--- a/libreoffice-presentation-minimizer.preinst.in 2010-10-12 00:40:55 +0000
+++ b/libreoffice-presentation-minimizer.preinst.in 1970-01-01 00:00:00 +0000
@@ -1,23 +0,0 @@
-#!/bin/sh
-
-set -e
-
-#INCLUDE_SHELL_LIB#
-
-case "$1" in
- upgrade)
- if dpkg --compare-versions `echo $2 | cut -d+ -f2` lt OOo3.3.0~; then
- if dpkg --compare-versions $2 lt 1.0+OOo3.0.0~beta2~beb300m3; then
- # this is a legacy package, so we need to find it first...
- id=`/usr/lib/libreoffice/program/unopkg list --shared | grep Identifier:.*presentation-minimizer | cut -d":" -f2`
- else
- id=com.sun.star.PresentationMinimizer-$PLATFORMID
- fi
- remove_extension $id
- fi
- ;;
-esac
-
-#DEBHELPER#
-
-exit 0
=== removed file 'libreoffice-presenter-console.preinst.in'
--- a/libreoffice-presenter-console.preinst.in 2010-10-12 00:40:55 +0000
+++ b/libreoffice-presenter-console.preinst.in 1970-01-01 00:00:00 +0000
@@ -1,17 +0,0 @@
-#!/bin/sh
-
-set -e
-
-#INCLUDE_SHELL_LIB#
-
-case "$1" in
- upgrade)
- if dpkg --compare-versions `echo $2 | cut -d+ -f2` lt OOo3.3.0~; then
- remove_extension com.sun.PresenterScreen-$PLATFORMID
- fi
- ;;
-esac
-
-#DEBHELPER#
-
-exit 0
=== removed file 'libreoffice-report-builder.preinst.in'
--- a/libreoffice-report-builder.preinst.in 2010-10-12 00:40:55 +0000
+++ b/libreoffice-report-builder.preinst.in 1970-01-01 00:00:00 +0000
@@ -1,17 +0,0 @@
-#!/bin/sh
-
-set -e
-
-#INCLUDE_SHELL_LIB#
-
-case "$1" in
- upgrade)
- if dpkg --compare-versions `echo $2 | cut -d+ -f2` lt OOo3.3.0~; then
- remove_extension com.sun.reportdesigner
- fi
- ;;
-esac
-
-#DEBHELPER#
-
-exit 0
=== removed file 'libreoffice-wiki-publisher.preinst.in'
--- a/libreoffice-wiki-publisher.preinst.in 2010-10-12 00:40:55 +0000
+++ b/libreoffice-wiki-publisher.preinst.in 1970-01-01 00:00:00 +0000
@@ -1,17 +0,0 @@
-#!/bin/sh
-
-set -e
-
-#INCLUDE_SHELL_LIB#
-
-case "$1" in
- upgrade)
- if dpkg --compare-versions `echo $2 | cut -d+ -f2` lt OOo3.3.0~; then
- remove_extension com.sun.wiki-publisher
- fi
- ;;
-esac
-
-#DEBHELPER#
-
-exit 0
=== removed file 'libreoffice-writer.preinst.in'
--- a/libreoffice-writer.preinst.in 2010-10-12 00:40:55 +0000
+++ b/libreoffice-writer.preinst.in 1970-01-01 00:00:00 +0000
@@ -1,17 +0,0 @@
-#!/bin/sh
-
-set -e
-
-#INCLUDE_SHELL_LIB#
-
-case "$1" in install|upgrade)
- if [ -L /usr/lib/libreoffice/program/classes ]; then
- rm /usr/lib/libreoffice/program/classes
- mkdir /usr/lib/libreoffice/program/classes
- fi
- ;;
-esac
-
-#DEBHELPER#
-
-exit 0
=== removed file 'libreoffice.postinst.in'
--- a/libreoffice.postinst.in 2010-10-12 00:40:55 +0000
+++ b/libreoffice.postinst.in 1970-01-01 00:00:00 +0000
@@ -1,14 +0,0 @@
-#!/bin/sh
-
-set -e
-
-#INCLUDE_SHELL_LIB#
-
-if [ "$1" = "configure" ]; then
- rm_conffile_commit "/etc/openoffice/sofficerc"
- rm_conffile_commit "/etc/openoffice/psprint.conf"
-fi
-
-#DEBHELPER#
-
-exit 0
=== removed file 'libreoffice.preinst.in'
--- a/libreoffice.preinst.in 2010-10-12 00:40:55 +0000
+++ b/libreoffice.preinst.in 1970-01-01 00:00:00 +0000
@@ -1,18 +0,0 @@
-#!/bin/sh
-
-set -e
-
-#INCLUDE_SHELL_LIB#
-
-case "$1" in
- install|upgrade)
- if test -n "$2" && dpkg --compare-versions "$2" lt "2.0.0-1"; then
- prep_rm_conffile "/etc/openoffice/sofficerc" $DPKG_MAINTSCRIPT_PACKAGE
- prep_rm_conffile "/etc/openoffice/psprint.conf" $DPKG_MAINTSCRIPT_PACKAGE
- fi
- ;;
-esac
-
-#DEBHELPER#
-
-exit 0
Reply to: