#!/bin/sh set -e priority=1063 basedir=/usr/lib/jvm/java-6-sun-1.6.0.24 basediralias=/usr/lib/jvm/java-6-sun jdiralias=java-6-sun mandir=/usr/lib/jvm/java-6-sun/jre/man srcext=1.gz dstext=1.gz jre_tools='ControlPanel java java_vm javaws jcontrol keytool pack200 policytool rmid rmiregistry unpack200 orbd servertool tnameserv' jar_packs='' case "$1" in configure) for i in $jre_tools; do unset slave1 slave2 || true if [ -e $mandir/man1/$i.$srcext ]; then slave1="--slave \ /usr/share/man/man1/$i.$dstext \ $i.$dstext \ $mandir/man1/$i.$srcext" fi # disabled if false && [ -e $mandir/ja/man1/$i.$srcext ]; then slave2="--slave \ /usr/share/man/ja/man1/$i.$dstext \ ${i}_ja.$dstext \ $mandir/ja/man1/$i.$srcext" fi update-alternatives \ --install \ /usr/bin/$i \ $i \ $basediralias/jre/bin/$i \ $priority \ $slave1 $slave2 done update-alternatives \ --install /usr/bin/jexec jexec $basediralias/jre/lib/jexec $priority \ --slave \ /usr/share/binfmts/jar \ jexec-binfmt \ $basediralias/jre/lib/jar.binfmt ;; esac