diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-06 02:05:42 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-06 02:05:42 +0000 |
commit | 52506cce144537546ffd519c505a9d67d25b284b (patch) | |
tree | 04dae99a61727033fb475f415a1355fefda04641 /debian/powerline-gitstatus.preinst | |
parent | Adding upstream version 1.3.1. (diff) | |
download | powerline-gitstatus-debian/1.3.1-1.tar.xz powerline-gitstatus-debian/1.3.1-1.zip |
Adding debian version 1.3.1-1.debian/1.3.1-1debian
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/powerline-gitstatus.preinst')
-rwxr-xr-x | debian/powerline-gitstatus.preinst | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/debian/powerline-gitstatus.preinst b/debian/powerline-gitstatus.preinst new file mode 100755 index 0000000..22d6b0f --- /dev/null +++ b/debian/powerline-gitstatus.preinst @@ -0,0 +1,31 @@ +#!/bin/sh + +set -e + +case "${1}" in + install) + mkdir -p /usr/share/powerline-gitstatus/divert + + for FILE in /usr/share/powerline/config_files/colorschemes/default.json \ + /usr/share/powerline/config_files/themes/shell/default.json \ + /usr/share/powerline/config_files/themes/shell/default_leftonly.json + do + DIVERTION="/usr/share/powerline-gitstatus/divert/$(basename $(dirname ${FILE}))_$(basename ${FILE}).powerline" + + dpkg-divert --package powerline-gitstatus --quiet --add --rename --divert "${DIVERTION}" "${FILE}" + done + ;; + + upgrade|abort-upgrade) + + ;; + + *) + echo "preinst called with unknown argument \`${1}'" >&2 + exit 1 + ;; +esac + +#DEBHELPER# + +exit 0 |