/[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.19 Revision 1.20
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.19 2012/10/17 13:16:31 aballier Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/texlive-common.eclass,v 1.20 2013/06/26 15:54:48 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# @AUTHOR: 8# @AUTHOR:
46# Return if a file is present in the texmf tree 46# Return if a file is present in the texmf tree
47# Call it from the directory containing texmf and texmf-dist 47# Call it from the directory containing texmf and texmf-dist
48 48
49texlive-common_is_file_present_in_texmf() { 49texlive-common_is_file_present_in_texmf() {
50 local mark="${T}/$1.found" 50 local mark="${T}/$1.found"
51 find texmf -name $1 -exec touch "${mark}" \;
52 find texmf-dist -name $1 -exec touch "${mark}" \; 51 [ -d texmf ] && find texmf -name $1 -exec touch "${mark}" \;
52 [ -d texmf-dist ] && find texmf-dist -name $1 -exec touch "${mark}" \;
53 [ -f "${mark}" ] 53 [ -f "${mark}" ]
54} 54}
55 55
56# @FUNCTION: texlive-common_do_symlinks 56# @FUNCTION: texlive-common_do_symlinks
57# @USAGE: < src > < dest > 57# @USAGE: < src > < dest >

Legend:
Removed from v.1.19  
changed lines
  Added in v.1.20

  ViewVC Help
Powered by ViewVC 1.1.20