aboutsummaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorAlexis Ballier <aballier@gentoo.org>2007-09-22 13:04:34 +0000
committerMikle Kolyada <zlogene@gentoo.org>2019-06-09 17:54:32 +0300
commit0c383028497f68ae4305833908127232db9b4651 (patch)
tree383f83233d4055b171cdb315c638d59ffbbdc1b0 /eclass
parenthandle updmap.cfg (diff)
downloadtex-0c383028497f68ae4305833908127232db9b4651.tar.gz
tex-0c383028497f68ae4305833908127232db9b4651.tar.bz2
tex-0c383028497f68ae4305833908127232db9b4651.zip
add a new helper function to test for the presence of a file in texmf tree
svn path=/texlive-overlay/; revision=139
Diffstat (limited to 'eclass')
-rw-r--r--eclass/texlive-common.eclass10
1 files changed, 10 insertions, 0 deletions
diff --git a/eclass/texlive-common.eclass b/eclass/texlive-common.eclass
index 5799540..9f5122e 100644
--- a/eclass/texlive-common.eclass
+++ b/eclass/texlive-common.eclass
@@ -30,3 +30,13 @@ texlive-common_handle_config_files() {
dosym /etc/texmf/$(dirname ${f}).d/$(basename ${f}) ${TEXMF_PATH}/${f}
done
}
+
+
+# Return if a file is present in the texmf tree
+# Call it from the directory containing texmf and texmf-dist
+
+texlive-common_is_file_present_in_texmf() {
+ find texmf -name $1 -exec return 0 \;
+ find texmf-dist -name $1 -exec return 0 \;
+ return 1
+}