| 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.7 2008/09/02 09:56:31 aballier Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/texlive-common.eclass,v 1.8 2008/10/14 06:42:44 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 | # |
| … | |
… | |
| 66 | |
66 | |
| 67 | texlive-common_do_symlinks() { |
67 | texlive-common_do_symlinks() { |
| 68 | while [ $# != 0 ]; do |
68 | while [ $# != 0 ]; do |
| 69 | case $1 in |
69 | case $1 in |
| 70 | cont-??|metafun|mptopdf) |
70 | cont-??|metafun|mptopdf) |
| 71 | elog "Symlink $1 skipped (special case)" |
71 | einfo "Symlink $1 skipped (special case)" |
| 72 | ;; |
72 | ;; |
| 73 | mf) |
73 | mf) |
| 74 | elog "Symlink $1 -> $2 skipped (texlive-core takes care of it)" |
74 | einfo "Symlink $1 -> $2 skipped (texlive-core takes care of it)" |
| 75 | ;; |
75 | ;; |
| 76 | *) |
76 | *) |
| 77 | if [ $1 = $2 ]; |
77 | if [ $1 = $2 ]; |
| 78 | then |
78 | then |
| 79 | elog "Symlink $1 -> $2 skipped" |
79 | einfo "Symlink $1 -> $2 skipped" |
| 80 | elif [ -e "${D}/usr/bin/$1" ]; |
80 | elif [ -e "${D}/usr/bin/$1" ]; |
| 81 | then |
81 | then |
| 82 | elog "Symlink $1 skipped (file exists)" |
82 | einfo "Symlink $1 skipped (file exists)" |
| 83 | else |
83 | else |
| 84 | elog "Making symlink from $1 to $2" |
84 | einfo "Making symlink from $1 to $2" |
| 85 | dosym $2 /usr/bin/$1 |
85 | dosym $2 /usr/bin/$1 |
| 86 | fi |
86 | fi |
| 87 | ;; |
87 | ;; |
| 88 | esac |
88 | esac |
| 89 | shift; shift; |
89 | shift; shift; |