/[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.15 Revision 1.16
1# Copyright 1999-2011 Gentoo Foundation 1# Copyright 1999-2011 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.15 2011/08/22 04:46:32 vapier Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/texlive-common.eclass,v 1.16 2011/08/29 01:28:10 vapier 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# @AUTHOR: 8# @AUTHOR:
90 shift; shift; 90 shift; shift;
91 done 91 done
92} 92}
93 93
94# @FUNCTION: etexlinks 94# @FUNCTION: etexlinks
95# @USAGE: < file > 95# @USAGE: < file >
96# @DESCRIPTION: 96# @DESCRIPTION:
97# Mimic texlinks on a fmtutil format file 97# Mimic texlinks on a fmtutil format file
98# 98#
99# $1 has to be a fmtutil format file like fmtutil.cnf 99# $1 has to be a fmtutil format file like fmtutil.cnf
100# etexlinks foo will install the symlinks that texlinks --cnffile foo would have 100# etexlinks foo will install the symlinks that texlinks --cnffile foo would have
108 # Install symlinks from formats to engines 108 # Install symlinks from formats to engines
109 texlive-common_do_symlinks $(sed '/^[ ]*#/d; /^[ ]*$/d' "$1" | awk '{print $1, $2}') 109 texlive-common_do_symlinks $(sed '/^[ ]*#/d; /^[ ]*$/d' "$1" | awk '{print $1, $2}')
110} 110}
111 111
112# @FUNCTION: dobin_texmf_scripts 112# @FUNCTION: dobin_texmf_scripts
113# @USAGE: < file1 file2 ... > 113# @USAGE: < file1 file2 ... >
114# @DESCRIPTION: 114# @DESCRIPTION:
115# Symlinks a script from the texmf tree to /usr/bin. Requires permissions to be 115# Symlinks a script from the texmf tree to /usr/bin. Requires permissions to be
116# correctly set for the file that it will point to. 116# correctly set for the file that it will point to.
117 117
118dobin_texmf_scripts() { 118dobin_texmf_scripts() {
119 while [ $# -gt 0 ] ; do 119 while [ $# -gt 0 ] ; do
120 local trg=$(basename ${1} | sed 's,\.[^/]*$,,' | tr '[:upper:]' '[:lower:]') 120 local trg=$(basename ${1} | sed 's,\.[^/]*$,,' | tr '[:upper:]' '[:lower:]')
121 einfo "Installing ${1} as ${trg} bin wrapper" 121 einfo "Installing ${1} as ${trg} bin wrapper"

Legend:
Removed from v.1.15  
changed lines
  Added in v.1.16

  ViewVC Help
Powered by ViewVC 1.1.20