| 1 |
#!/bin/sh |
| 2 |
# $XTermId: postinst,v 1.5 2024/09/10 22:54:57 tom Exp $ |
| 3 |
set -e |
| 4 |
|
| 5 |
if [ "$1" = "configure" ] ; then |
| 6 |
PRI=50 |
| 7 |
ALT=xterm-filter |
| 8 |
|
| 9 |
# add this package, and related packages (which should "own" this) |
| 10 |
# (cocot needs a wrapper script, too, for compatibility with luit). |
| 11 |
for PKG in bluit luit cocot |
| 12 |
do |
| 13 |
if test -f /usr/bin/$PKG |
| 14 |
then |
| 15 |
update-alternatives \ |
| 16 |
--verbose \ |
| 17 |
--install /usr/bin/$ALT $ALT \ |
| 18 |
/usr/bin/$PKG $PRI \ |
| 19 |
--slave /usr/share/man/man1/$ALT.1.gz $ALT.1.gz \ |
| 20 |
/usr/share/man/man1/$PKG.1.gz |
| 21 |
PRI=`expr $PRI - 10` |
| 22 |
fi |
| 23 |
done |
| 24 |
fi |
| 25 |
|
| 26 |
#DEBHELPER# |