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

Re: Debian alternatives support for bibtex



2009/12/25 Norbert Preining <preining@logic.at>:
> Can someone come up with a list of things the texlive-bin package
> has to do to start with the alternatives?
>

I'll try.

The following should be done:

1) Oren's BibTeX binary should go to /usr/bin/ under different name. I
propose /usr/bin/bibtex.original .

2) Oren's BibTeX manual page should go to /usr/share/man/man1/ under
different name. I propose /usr/share/man/man1/bibtex.original.1.gz .

3) Debian alternative should be installed on package installation and
removed on package removal. Patches for texlive-binaries.postinst and
texlive-binaries.prerm attached.

Note: texlive-binaries.prerm.patch also contains a bugfix.

Please correct my mistakes if any,
Andrey Paramonov
*** /home/pent/texlive-bin-2009/debian/texlive-binaries.postinst	2009-12-25 23:24:17.000000000 +0300
--- /home/pent/texlive-binaries.postinst	2009-12-25 23:45:22.000000000 +0300
***************
*** 8,13 ****
--- 8,15 ----
  case "$1" in 
    configure|reconfigure)
      update-alternatives --install /usr/bin/xdvi.bin xdvi.bin /usr/bin/xdvi-xaw 30
+     update-alternatives --install /usr/bin/bibtex bibtex /usr/bin/bibtex.original 100 \
+         --slave /usr/share/man/man1/bibtex.1.gz bibtex.1.gz /usr/share/man/man1/bibtex.original.1.gz
      ;;
  esac
  
*** /home/pent/texlive-bin-2009/debian/texlive-binaries.prerm	2009-12-25 23:24:17.000000000 +0300
--- /home/pent/texlive-binaries.prerm	2009-12-25 23:45:16.000000000 +0300
***************
*** 8,14 ****
    upgrade)
      ;;
    *)
!     update-alternatives --remove xdvi.bin /usr/bin/xdvi-xaw.bin
      ;;
  esac
  
--- 8,15 ----
    upgrade)
      ;;
    *)
!     update-alternatives --remove xdvi.bin /usr/bin/xdvi-xaw
!     update-alternatives --remove bibtex /usr/bin/bibtex.original
      ;;
  esac
  

Reply to: