kiss-mfavila-small/ports/xterm/xterm-359/package/debian/postinst

26 lines
346 B
Bash

#! /bin/sh
echo "** postinst script for xterm: $*"
set -e
PRI=60
ALT=x-terminal-emulator
PKG=xterm-dev
BINDIR=/usr/bin
MANDIR=/usr/share/man/man1
if [ $1 != "upgrade" ]
then
update-alternatives \
--install \
$BINDIR/$ALT $ALT \
$BINDIR/$PKG $PRI \
--slave $MANDIR/$ALT.1.gz $ALT.1.gz \
$MANDIR/$PKG.1.gz
fi
#DEBHELPER#
exit 0