Re: texlive should use xdvi alternatives mechanism (was: xdvi of texlive)
Hi Frank! Hi all!
On Fre, 06 Okt 2006, Frank Küster wrote:
> This should indeed be done, and it's easily possible. That's the diff
> between the installed xdvi script and the source file xdvi-sh.in:
Included in the current svn.
> I guess we only need to s/@final_exec_name@/xdvi.bin/ in that line, and
> add the usual calls to update-alternatives to the maintainer scripts.
Never used alternatives before: Is this ok:
At the end of the tl-base-bin.postinst script (ie in
addons-per-bin/tl-base-bin.postinst.post):
# activate the xdvi.bin alternative
case "$1" in
configure|reconfigure)
update-alternatives --install /usr/bin/xdvi.bin xdvi.bin /usr/bin/xdvi-xaw.bin 30
;;
esac
and in tl-base-bin.prerm.post (ie end of prerm script):
case "$1" in
upgrade)
;;
*)
update-alternatives --remove xdvi.bin /usr/bin/xdvi-xaw.bin
;;
esac
Ok like this?
Best wishes
Norbert
-------------------------------------------------------------------------------
Dr. Norbert Preining <preining@logic.at> Università di Siena
Debian Developer <preining@debian.org> Debian TeX Group
gpg DSA: 0x09C5B094 fp: 14DF 2E6C 0307 BE6D AD76 A9C0 D2BF 4AA3 09C5 B094
-------------------------------------------------------------------------------
DARENTH (n.)
Measure = 0.0000176 mg. Defined as that amount of margarine capable of
covering one hundred slices of bread to the depth of one
molecule. This is the legal maximum allowed in sandwich bars in
Greater London.
--- Douglas Adams, The Meaning of Liff
Reply to: