diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-21 12:02:21 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-21 12:02:21 +0000 |
commit | 8cf26cb433ad859101230c777a66c25151f69660 (patch) | |
tree | 7864a76938262b44d659e91f1c200cc56292539e /debian/fonts-powerline-extra.preinst | |
parent | Adding upstream version 0~20240322. (diff) | |
download | powerline-fonts-2c3fb33a126c5b5981308bf03cdd2d697451c077.tar.xz powerline-fonts-2c3fb33a126c5b5981308bf03cdd2d697451c077.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 'debian/fonts-powerline-extra.preinst')
-rwxr-xr-x | debian/fonts-powerline-extra.preinst | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/debian/fonts-powerline-extra.preinst b/debian/fonts-powerline-extra.preinst new file mode 100755 index 0000000..e3d425c --- /dev/null +++ b/debian/fonts-powerline-extra.preinst @@ -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 + install) + mkdir -p /usr/lib/powerline/divert + + for FILE in ${FILES} + do + dpkg-divert --package fonts-powerline-extra --quiet --add --rename --divert /usr/lib/powerline/divert/${FILE}.orig /usr/share/consolefonts/${FILE} + done + ;; + + abort-upgrade|upgrade) + + ;; + + *) + echo "preinst called with unknown argument \`${1}'" >&2 + exit 1 + ;; +esac + +#DEBHELPER# + +exit 0 |