#!/bin/sh -e

if [ "$1" = configure ]; then
    # Fix some screwup in old package
    case "$2" in
    (2.4.2-3[45]) update-alternatives --remove mt /bin/gmt; esac
    update-alternatives --install /bin/mt mt /bin/mt-gnu 10 \
      --slave \
	/usr/share/man/man1/mt.1.gz mt.1.gz /usr/share/man/man1/mt-gnu.1.gz
    install-info --quiet \
      --description="A program to manage archives of files." \
      --section "General Commands" "General Commands" /usr/share/info/cpio.info
fi
