#!/bin/sh
arg0=`basename $0`
SCR=`echo $arg0 | cut -f 2 -d .`
PKG=`echo $arg0 | cut -f 1 -d .`
VER=`echo $pkg | cut -f 3 -d -`
FLA=`echo $pkg | cut -f 2 -d -`
BIN=`echo $pkg | cut -f 1 -d -`

X_PATH=/usr/X11R6/bin
NS_BIN=/usr/lib/netscape/$VER/$BIN-$FLA/$BIN-$FLA

[ $FLA = dmotif ] && b_pr=$b_pr+20
[ $VER = 406 ] && b_pr=$b_pr+40

[ $BIN = communicator ] && n_pr=$n_pr+10
[ $FLA = dmotif ] && n_pr=$n_pr+20
[ $VER = 406 ] && n_pr=$n_pr+40


if [ -z "$1" ];then
	echo Please call this with some arguments.
	exit 1
fi
if [ $1 = configure ];then
	update-alternatives --install\
		$X_PATH/$BIN\
		$BIN\
		$NS_BIN\
		$b_pr
	update-alternatives --install\
		$X_PATH/netscape\
		netscape\
		$NS_BIN\
		$n_pr
elif [ $1 = abort-upgrade ];then
	:
elif [ $1 = abort-remove ];then
	:
elif [ $1 = abort-deconfigure ];then
	:
fi
#DEBHELPER#
