terminator/debian/terminator.postinst
bryce 961e5368f2 * No-change upload for wily
* No-change upload for vivid
* copyright: Change upstream maintainer to Stephen Boddy
* New upstream release of 0.98.  Remaining changes:
  + Add missing dependency on psutil to check for IBus running.
  + Workaround debian compression of font files.
  + Add terminator.wrapper to fix blurry/incorrect icons in task switchers.
2015-09-21 23:20:18 -07:00

24 lines
825 B
Bash
Executable File

#!/bin/sh
set -e
if [ "$1" = "configure" ]; then
# Ensure the old alternative is removed
update-alternatives --remove terminator /usr/bin/terminator || true
update-alternatives --remove x-terminal-emulator /usr/bin/terminator
# Add an alternative for x-terminal-emulator
update-alternatives --install /usr/bin/x-terminal-emulator \
x-terminal-emulator /usr/bin/terminator.wrapper 50 \
--slave /usr/share/man/man1/x-terminal-emulator.1.gz \
x-terminal-emulator.1.gz /usr/share/man/man1/terminator.1.gz
fi
for dname in `find /usr/share/doc/terminator/html*/_static/fonts/ -type d` /usr/share/doc/terminator/apidoc/_static/fonts/; do
if [ -d ${dname} ]; then
gunzip -f ${dname}/*.gz
fi
done
#DEBHELPER#