[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: SVN texlive (new) commit: r2708 - texlive-new/trunk/texlive-bin/debian



On Die, 17 Apr 2007, Frank Küster wrote:
> if [ "$(update-alternatives --list xdvi.bin)" = "/usr/bin/xdvi.real" ]; then
>   # points to tetex file
>   update-alternatives --remove xdvi.bin /usr/bin/xdvi.real
> fi
> update-alternatives --install ...
> 
> I still think --list is nicer than display+grep.

No, because --list shows the selection what WOULD be taken in auto mode,
but NOT the actual setting!!!! I tried it, it did't work.

Current code:
case "$1" in 
  configure|reconfigure)
    update-alternatives --install /usr/bin/xdvi.bin xdvi.bin /usr/bin/xdvi-xaw.bin 30
    # if we are still pointing to the teTeX alternative, remove this one
    # and switch to auto mode.
    if update-alternatives --display xdvi.bin | grep -q 'link currently points to /usr/bin/xdvi.real' ; then
      update-alternatives --remove xdvi.bin /usr/bin/xdvi.real
      update-alternatives --auto xdvi.bin
    fi
    ;;
esac

This is the third rebuild of texlive-bin.

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
-------------------------------------------------------------------------------
POLLOCH (n.)
One of those tiny ribbed-plastic and aluminium foil tubs of milk
served on trains enabling you to carry one safely back to you
compartment where your legs in comfort trying to get the bloody things
open.
			--- Douglas Adams, The Meaning of Liff



Reply to: