| 1 |
#! /bin/sh |
| 2 |
# postinst script for doomsday |
| 3 |
|
| 4 |
set -e |
| 5 |
|
| 6 |
case "$1" in |
| 7 |
configure|abort-upgrade) |
| 8 |
update-alternatives --install /usr/games/doom doom /usr/games/doomsday-compat 50 \ |
| 9 |
--slave /usr/share/man/man6/doom.6.gz \ |
| 10 |
doom.6.gz /usr/share/man/man6/doomsday.6.gz |
| 11 |
update-alternatives --install /usr/games/boom boom /usr/games/doomsday-compat 50 \ |
| 12 |
--slave /usr/share/man/man6/boom.6.gz \ |
| 13 |
boom.6.gz /usr/share/man/man6/doomsday.6.gz |
| 14 |
update-alternatives --install /usr/games/heretic heretic /usr/games/doomsday-compat 50 \ |
| 15 |
--slave /usr/share/man/man6/heretic.6.gz \ |
| 16 |
heretic.6.gz /usr/share/man/man6/doomsday.6.gz |
| 17 |
update-alternatives --install /usr/games/hexen hexen /usr/games/doomsday-compat 50 \ |
| 18 |
--slave /usr/share/man/man6/hexen.6.gz \ |
| 19 |
hexen.6.gz /usr/share/man/man6/doomsday.6.gz |
| 20 |
;; |
| 21 |
|
| 22 |
abort-remove|abort-deconfigure) |
| 23 |
|
| 24 |
;; |
| 25 |
|
| 26 |
*) |
| 27 |
echo "postinst called with unknown argument \`$1'" >&2 |
| 28 |
exit 1 |
| 29 |
;; |
| 30 |
esac |
| 31 |
|
| 32 |
#DEBHELPER# |
| 33 |
|
| 34 |
exit 0 |