summaryrefslogtreecommitdiffstats
path: root/debian/libreoffice-common.postrm.in
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-15 05:55:35 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-15 05:55:35 +0000
commit0e05dd0e4d67d88ca51780dafe4029744269e6fa (patch)
treeb49073fa569d8d4fbcc7002cf4df72fa840780c1 /debian/libreoffice-common.postrm.in
parentAdding upstream version 4:24.2.0. (diff)
downloadlibreoffice-0e05dd0e4d67d88ca51780dafe4029744269e6fa.tar.xz
libreoffice-0e05dd0e4d67d88ca51780dafe4029744269e6fa.zip
Adding debian version 4:24.2.0-1.debian/4%24.2.0-1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/libreoffice-common.postrm.in')
-rw-r--r--debian/libreoffice-common.postrm.in26
1 files changed, 26 insertions, 0 deletions
diff --git a/debian/libreoffice-common.postrm.in b/debian/libreoffice-common.postrm.in
new file mode 100644
index 0000000000..c4471b5917
--- /dev/null
+++ b/debian/libreoffice-common.postrm.in
@@ -0,0 +1,26 @@
+#!/bin/sh
+
+set -e
+
+#INCLUDE_SHELL_LIB#
+
+case "$1" in
+ remove|abort-install|abort-upgrade)
+ rm -rf /`echo @OODIR@ | sed -e s,usr/,var/,g`/share/prereg/bundled
+ rmdir /`echo @OODIR@ | sed -e s,usr/,var/,g`/share/prereg/ || true
+ rmdir /`echo @OODIR@ | sed -e s,usr/,var/,g`/share/ || true
+ # this belongs to -core, but won't work until we have -common stuff removed, too, so try here again
+ # in adduition to -core
+ rmdir /`echo @OODIR@ | sed -e s,usr/,var/,g`/program/ || true
+ rmdir /`echo @OODIR@ | sed -e s,usr/,var/,g` || true
+ # and try to remove /@OOBRANDDIR@ itself
+ rmdir /`echo @OODIR@ | sed -e s,usr/,var/,g` || true
+ ;;
+ purge)
+ rm -f /`echo @OODIR@ | sed -e s,usr/,var/,g`/share/config/javasettingsunopkginstall.xml
+ rmdir /`echo @OODIR@ | sed -e s,usr/,var/,g`/share/config || true
+ rmdir /`echo @OODIR@ | sed -e s,usr/,var/,g`/share || true
+ ;;
+esac
+
+#DEBHELPER#