From f06f1fc3d95167ec780cb0963548f2afdd548b20 Mon Sep 17 00:00:00 2001 From: "Thomas E. Dickey" Date: Sat, 11 Jun 2011 13:06:08 -0400 Subject: snapshot of project "lynx", label v2-8-8dev_8m --- PACKAGE/debian/postinst | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 PACKAGE/debian/postinst (limited to 'PACKAGE/debian/postinst') diff --git a/PACKAGE/debian/postinst b/PACKAGE/debian/postinst new file mode 100644 index 00000000..89955d4a --- /dev/null +++ b/PACKAGE/debian/postinst @@ -0,0 +1,27 @@ +#! /bin/sh +# postinst script for lynx + +set -e + +PRI=50 +ALT=lynx +PKG=lynx-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 -- cgit 1.4.1-2-gfad0