summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/support/latexmk/example_rcfiles/glossary_latexmkrc
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2020-01-01 21:52:34 +0000
committerKarl Berry <karl@freefriends.org>2020-01-01 21:52:34 +0000
commit2a8c3416c9a62db3f1dd8082bb5a065dd6bfc0f8 (patch)
tree88b55cc6d7fc0cc3c7bcdc8c98fac278b959819c /Master/texmf-dist/doc/support/latexmk/example_rcfiles/glossary_latexmkrc
parentff54eeb61ad2429286a0177d8c21153a4df235b8 (diff)
latexmk (1jan20)
git-svn-id: svn://tug.org/texlive/trunk@53293 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/support/latexmk/example_rcfiles/glossary_latexmkrc')
-rw-r--r--Master/texmf-dist/doc/support/latexmk/example_rcfiles/glossary_latexmkrc9
1 files changed, 6 insertions, 3 deletions
diff --git a/Master/texmf-dist/doc/support/latexmk/example_rcfiles/glossary_latexmkrc b/Master/texmf-dist/doc/support/latexmk/example_rcfiles/glossary_latexmkrc
index 2c15e9aac67..5c757f5b43c 100644
--- a/Master/texmf-dist/doc/support/latexmk/example_rcfiles/glossary_latexmkrc
+++ b/Master/texmf-dist/doc/support/latexmk/example_rcfiles/glossary_latexmkrc
@@ -13,9 +13,12 @@
add_cus_dep( 'glo', 'gls', 0, 'makeglossaries' );
$clean_ext .= " acr acn alg glo gls glg";
sub makeglossaries {
- my ($name, $path) = fileparse( $$Psource );
- return system "makeglossaries -d '$path' '$name'";
- }
+ my ($base_name, $path) = fileparse( $_[0] );
+ pushd $path;
+ my $return = system "makeglossaries", $base_name;
+ popd;
+ return $return;
+ }
# 2. If you use the OBSOLETE glossary package, then you can do