diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 16:42:27 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 16:42:27 +0000 |
commit | 825a01335387de4efac17881048279ddce02117b (patch) | |
tree | 462a857a4afdaad85133467ec86f9b90314d71d6 /debian/powerline-gitstatus.preinst | |
parent | Adding upstream version 1.3.2. (diff) | |
download | powerline-gitstatus-53f9c9a9516c195846d6af0a94bdaa51d895514f.tar.xz powerline-gitstatus-53f9c9a9516c195846d6af0a94bdaa51d895514f.zip |
Adding debian version 1.3.2-1.debian/1.3.2-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 |