summaryrefslogtreecommitdiffstats
path: root/debian/fonts-powerline-extra.postrm
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-21 12:02:21 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-21 12:02:21 +0000
commit8cf26cb433ad859101230c777a66c25151f69660 (patch)
tree7864a76938262b44d659e91f1c200cc56292539e /debian/fonts-powerline-extra.postrm
parentAdding upstream version 0~20240322. (diff)
downloadpowerline-fonts-progress-linux.tar.xz
powerline-fonts-progress-linux.zip
Adding progress-linux version 0~20240322-0progress7u1.HEADprogress-linux/0_20240322-0progress7u1progress-linux
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rwxr-xr-xdebian/fonts-powerline-extra.postrm45
1 files changed, 45 insertions, 0 deletions
diff --git a/debian/fonts-powerline-extra.postrm b/debian/fonts-powerline-extra.postrm
new file mode 100755
index 0000000..c14dfc8
--- /dev/null
+++ b/debian/fonts-powerline-extra.postrm
@@ -0,0 +1,45 @@
+#!/bin/sh
+
+set -e
+
+FILES=" Lat15-Terminus12x6.psf.gz
+ Lat15-TerminusBold14.psf.gz
+ Lat15-Terminus14.psf.gz
+ Lat15-TerminusBoldVGA14.psf.gz
+ Lat15-TerminusBold16.psf.gz
+ Lat15-Terminus16.psf.gz
+ Lat15-TerminusBoldVGA16.psf.gz
+ Lat15-TerminusBold20x10.psf.gz
+ Lat15-Terminus20x10.psf.gz
+ Lat15-TerminusBold22x11.psf.gz
+ Lat15-Terminus22x11.psf.gz
+ Lat15-TerminusBold24x12.psf.gz
+ Lat15-Terminus24x12.psf.gz
+ Lat15-TerminusBold28x14.psf.gz
+ Lat15-Terminus28x14.psf.gz
+ Lat15-TerminusBold32x16.psf.gz
+ Lat15-Terminus32x16.psf.gz"
+
+case "${1}" in
+ remove)
+ for FILE in ${FILES}
+ do
+ dpkg-divert --package fonts-powerline-extra --quiet --remove --rename --divert /usr/lib/powerline/divert/${FILE}.orig /usr/share/consolefonts/${FILE}
+ done
+
+ rmdir -p /usr/lib/powerline/divert > /dev/null 2>&1 || true
+ ;;
+
+ purge|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
+
+ ;;
+
+ *)
+ echo "postrm called with unknown argument \`${1}'" >&2
+ exit 1
+ ;;
+esac
+
+#DEBHELPER#
+
+exit 0