| 1 | # Copyright 1999-2008 Gentoo Foundation |
1 | # Copyright 1999-2008 Gentoo Foundation |
| 2 | # Distributed under the terms of the GNU General Public License v2 |
2 | # Distributed under the terms of the GNU General Public License v2 |
| 3 | # $Header: /var/cvsroot/gentoo-x86/eclass/texlive-common.eclass,v 1.13 2010/10/24 04:35:59 aballier Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/texlive-common.eclass,v 1.14 2010/10/24 16:22:33 aballier Exp $ |
| 4 | |
4 | |
| 5 | # @ECLASS: texlive-common.eclass |
5 | # @ECLASS: texlive-common.eclass |
| 6 | # @MAINTAINER: |
6 | # @MAINTAINER: |
| 7 | # tex@gentoo.org |
7 | # tex@gentoo.org |
| 8 | # |
8 | # |
| … | |
… | |
| 124 | fi |
124 | fi |
| 125 | dosym ../share/${1} /usr/bin/${trg} || die "failed to install ${1} as $trg" |
125 | dosym ../share/${1} /usr/bin/${trg} || die "failed to install ${1} as $trg" |
| 126 | shift |
126 | shift |
| 127 | done |
127 | done |
| 128 | } |
128 | } |
|
|
129 | |
|
|
130 | # @FUNCTION: etexmf-update |
|
|
131 | # @USAGE: In ebuilds' pkg_postinst and pkg_postrm phases |
|
|
132 | # @DESCRIPTION: |
|
|
133 | # Runs texmf-update if it is available and prints a warning otherwise. This |
|
|
134 | # function helps in factorizing some code. |
|
|
135 | |
|
|
136 | etexmf-update() { |
|
|
137 | if [ "$ROOT" = "/" ] && [ -x /usr/sbin/texmf-update ] ; then |
|
|
138 | /usr/sbin/texmf-update |
|
|
139 | else |
|
|
140 | ewarn "Cannot run texmf-update for some reason." |
|
|
141 | ewarn "Your texmf tree might be inconsistent with your configuration" |
|
|
142 | ewarn "Please try to figure what has happened" |
|
|
143 | fi |
|
|
144 | } |