| 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.9 2008/11/06 19:51:30 aballier Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/texlive-common.eclass,v 1.10 2010/01/08 15:19:20 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 | # |
| … | |
… | |
| 33 | for f in $(find . -name '*.cnf' -o -name '*.cfg' -type f | sed -e "s:\./::g") ; do |
33 | for f in $(find . -name '*.cnf' -o -name '*.cfg' -type f | sed -e "s:\./::g") ; do |
| 34 | if [ "${f#*config}" != "${f}" ] ; then |
34 | if [ "${f#*config}" != "${f}" ] ; then |
| 35 | continue |
35 | continue |
| 36 | fi |
36 | fi |
| 37 | dodir /etc/texmf/$(dirname ${f}).d |
37 | dodir /etc/texmf/$(dirname ${f}).d |
|
|
38 | einfo "Moving (and symlinking) ${TEXMF_PATH}/${f} to /etc/texmf/$(dirname ${f}).d" |
| 38 | mv "${D}/${TEXMF_PATH}/${f}" "${D}/etc/texmf/$(dirname ${f}).d" || die "mv ${f} failed." |
39 | mv "${D}/${TEXMF_PATH}/${f}" "${D}/etc/texmf/$(dirname ${f}).d" || die "mv ${f} failed." |
| 39 | dosym /etc/texmf/$(dirname ${f}).d/$(basename ${f}) ${TEXMF_PATH}/${f} |
40 | dosym /etc/texmf/$(dirname ${f}).d/$(basename ${f}) ${TEXMF_PATH}/${f} |
| 40 | done |
41 | done |
| 41 | } |
42 | } |
| 42 | |
43 | |