From: "Alexis Ballier (aballier)" <aballier@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] gentoo-x86 commit in eclass: texlive-common.eclass
Date: Sun, 24 Oct 2010 16:22:33 +0000 (UTC) [thread overview]
Message-ID: <20101024162233.2A61120051@flycatcher.gentoo.org> (raw)
aballier 10/10/24 16:22:33
Modified: texlive-common.eclass
Log:
Add etexmf-update to call texmf-update from ebuilds so that some duplicated code can be factorized
Revision Changes Path
1.14 eclass/texlive-common.eclass
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/texlive-common.eclass?rev=1.14&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/texlive-common.eclass?rev=1.14&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/texlive-common.eclass?r1=1.13&r2=1.14
Index: texlive-common.eclass
===================================================================
RCS file: /var/cvsroot/gentoo-x86/eclass/texlive-common.eclass,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -r1.13 -r1.14
--- texlive-common.eclass 24 Oct 2010 04:35:59 -0000 1.13
+++ texlive-common.eclass 24 Oct 2010 16:22:33 -0000 1.14
@@ -1,6 +1,6 @@
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/texlive-common.eclass,v 1.13 2010/10/24 04:35:59 aballier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/texlive-common.eclass,v 1.14 2010/10/24 16:22:33 aballier Exp $
# @ECLASS: texlive-common.eclass
# @MAINTAINER:
@@ -126,3 +126,19 @@
shift
done
}
+
+# @FUNCTION: etexmf-update
+# @USAGE: In ebuilds' pkg_postinst and pkg_postrm phases
+# @DESCRIPTION:
+# Runs texmf-update if it is available and prints a warning otherwise. This
+# function helps in factorizing some code.
+
+etexmf-update() {
+ if [ "$ROOT" = "/" ] && [ -x /usr/sbin/texmf-update ] ; then
+ /usr/sbin/texmf-update
+ else
+ ewarn "Cannot run texmf-update for some reason."
+ ewarn "Your texmf tree might be inconsistent with your configuration"
+ ewarn "Please try to figure what has happened"
+ fi
+}
next reply other threads:[~2010-10-24 16:22 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-10-24 16:22 Alexis Ballier (aballier) [this message]
-- strict thread matches above, loose matches on Subject: below --
2014-11-02 18:02 [gentoo-commits] gentoo-x86 commit in eclass: texlive-common.eclass Alexis Ballier (aballier)
2013-06-26 15:54 Alexis Ballier (aballier)
2012-10-17 13:16 Alexis Ballier (aballier)
2012-10-17 12:55 Alexis Ballier (aballier)
2012-03-30 13:50 Alexis Ballier (aballier)
2010-10-24 4:35 Alexis Ballier (aballier)
2010-01-09 16:03 Alexis Ballier (aballier)
2010-01-09 16:01 Alexis Ballier (aballier)
2010-01-08 15:19 Alexis Ballier (aballier)
2008-11-06 19:51 Alexis Ballier (aballier)
2008-10-14 6:42 Alexis Ballier (aballier)
2008-08-30 12:33 Alexis Ballier (aballier)
2008-07-03 21:01 Alexis Ballier (aballier)
2007-11-06 23:34 Alexis Ballier (aballier)
2007-10-14 7:44 Alexis Ballier (aballier)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20101024162233.2A61120051@flycatcher.gentoo.org \
--to=aballier@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox