#! /bin/sh

set -e

jdkhome=@basedir@
priority=@priority@
jdk_tools='@jdk_tools@'

for program in $jdk_tools; do
    case "$program" in
    jarsigner) slave= ;;
    *) slave="--slave /usr/share/man/man1/$program.1.gz $program.1.gz $jdkhome/man/man1/$program.1.gz"
    esac
    update-alternatives --quiet \
	--install "/usr/bin/$program" "$program" \
	"$jdkhome/bin/$program" "$priority" \
	@GFDL@ $slave
done

#DEBHELPER#
