diff -ruN tofrodos-1.7.8.debian.1.orig/debian/tofrodos.postinst tofrodos-1.7.8.debian.1/debian/tofrodos.postinst --- tofrodos-1.7.8.debian.1.orig/debian/tofrodos.postinst 1970-01-01 05:00:00.000000000 +0500 +++ tofrodos-1.7.8.debian.1/debian/tofrodos.postinst 2010-09-01 19:47:53.000000000 +0600 @@ -0,0 +1,14 @@ +#!/bin/sh + +set -e + +if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ]; then + update-alternatives --install /usr/bin/dos2unix dos2unix /usr/bin/fromdos 10 \ + --slave /usr/share/man/man1/dos2unix.1.gz dos2unix.1.gz \ + /usr/share/man/man1/fromdos.1.gz + update-alternatives --install /usr/bin/unix2dos unix2dos /usr/bin/todos 10 \ + --slave /usr/share/man/man1/unix2dos.1.gz unix2dos.1.gz \ + /usr/share/man/man1/todos.1.gz +fi + +#DEBHELPER# diff -ruN tofrodos-1.7.8.debian.1.orig/debian/tofrodos.prerm tofrodos-1.7.8.debian.1/debian/tofrodos.prerm --- tofrodos-1.7.8.debian.1.orig/debian/tofrodos.prerm 1970-01-01 05:00:00.000000000 +0500 +++ tofrodos-1.7.8.debian.1/debian/tofrodos.prerm 2010-09-01 19:51:04.000000000 +0600 @@ -0,0 +1,10 @@ +#!/bin/sh + +set -e + +if [ "$1" != "upgrade" ]; then + update-alternatives --remove dos2unix /usr/bin/fromdos + update-alternatives --remove unix2dos /usr/bin/todos +fi + +#DEBHELPER#