/[gentoo-x86]/eclass/texlive-common.eclass
Gentoo

Diff of /eclass/texlive-common.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.8 Revision 1.9
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.8 2008/10/14 06:42:44 aballier Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/texlive-common.eclass,v 1.9 2008/11/06 19:51:30 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#
109} 109}
110 110
111# @FUNCTION: dobin_texmf_scripts 111# @FUNCTION: dobin_texmf_scripts
112# @USAGE: < file1 file2 ... > 112# @USAGE: < file1 file2 ... >
113# @DESCRIPTION: 113# @DESCRIPTION:
114# Installs a script from the texmf tree 114# Symlinks a script from the texmf tree to /usr/bin. Requires permissions to be
115# correctly set for the file that it will point to.
115 116
116dobin_texmf_scripts() { 117dobin_texmf_scripts() {
117 while [ $# -gt 0 ] ; do 118 while [ $# -gt 0 ] ; do
118 local trg=$(basename ${1} | sed 's,\.[^/]*$,,' | tr '[:upper:]' '[:lower:]') 119 local trg=$(basename ${1} | sed 's,\.[^/]*$,,' | tr '[:upper:]' '[:lower:]')
120 einfo "Installing ${1} as ${trg} bin wrapper"
119 newbin ${1} $trg || die "failed to install ${1} as $trg" 121 dosym ../share/${1} /usr/bin/${trg} || die "failed to install ${1} as $trg"
120 shift 122 shift
121 done 123 done
122} 124}

Legend:
Removed from v.1.8  
changed lines
  Added in v.1.9

  ViewVC Help
Powered by ViewVC 1.1.20