/[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.17 Revision 1.18
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.17 2012/03/30 13:50:39 aballier Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/texlive-common.eclass,v 1.18 2012/10/17 12:55:42 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:
130# @DESCRIPTION: 130# @DESCRIPTION:
131# Runs texmf-update if it is available and prints a warning otherwise. This 131# Runs texmf-update if it is available and prints a warning otherwise. This
132# function helps in factorizing some code. 132# function helps in factorizing some code.
133 133
134etexmf-update() { 134etexmf-update() {
135 if has_version 'app-text/texlive-core' ; then
135 if [ "$ROOT" = "/" ] && [ -x /usr/sbin/texmf-update ] ; then 136 if [ "$ROOT" = "/" ] && [ -x /usr/sbin/texmf-update ] ; then
136 /usr/sbin/texmf-update 137 /usr/sbin/texmf-update
137 else 138 else
138 ewarn "Cannot run texmf-update for some reason." 139 ewarn "Cannot run texmf-update for some reason."
139 ewarn "Your texmf tree might be inconsistent with your configuration" 140 ewarn "Your texmf tree might be inconsistent with your configuration"
140 ewarn "Please try to figure what has happened" 141 ewarn "Please try to figure what has happened"
142 fi
141 fi 143 fi
142} 144}

Legend:
Removed from v.1.17  
changed lines
  Added in v.1.18

  ViewVC Help
Powered by ViewVC 1.1.20