summaryrefslogtreecommitdiff
path: root/Master/tlpkg/TeXLive/TLPSRC.pm
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2013-04-19 15:48:28 +0000
committerKarl Berry <karl@freefriends.org>2013-04-19 15:48:28 +0000
commitc79d10db64a072f1ee07e9dc04dc9ebcc191c07c (patch)
tree64f7ce59c10fc5ff6b855815c6ac7b61913c3b98 /Master/tlpkg/TeXLive/TLPSRC.pm
parentf8997e27d006cf521ee6ce59f11eee0823dabe00 (diff)
use new tlpsetvar to abbreviate no-xindy list
git-svn-id: svn://tug.org/texlive/trunk@30037 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/tlpkg/TeXLive/TLPSRC.pm')
-rw-r--r--Master/tlpkg/TeXLive/TLPSRC.pm9
1 files changed, 8 insertions, 1 deletions
diff --git a/Master/tlpkg/TeXLive/TLPSRC.pm b/Master/tlpkg/TeXLive/TLPSRC.pm
index a2a7e036a7e..9c200de0990 100644
--- a/Master/tlpkg/TeXLive/TLPSRC.pm
+++ b/Master/tlpkg/TeXLive/TLPSRC.pm
@@ -167,7 +167,7 @@ sub from_file {
} elsif ($line =~ /^postaction\s+(.*)$/) {
push @postactions, $1 if ($1 ne "");
next;
- } elsif ($line =~ /^tlpsetvar\s+([-a-zA-Z_0-9]*)\s+(.*)$/) {
+ } elsif ($line =~ /^tlpsetvar\s+([-_a-zA-Z0-9]+)\s+(.*)$/) {
$tlpvars{$1} = $2;
next;
} else {
@@ -862,6 +862,13 @@ instead of the one given via C<file>.
=back
+=item C<tlpsetvar> I<var> I<val>
+
+sets variable I<var> to I<val>, for use within the current C<.tlpsrc>
+only. Order matters. The variable can be expanded with
+C<${>I<var>C<}> (after it is defined). Characters allowed in the I<var>
+name are C<-_a-zA-Z0-9>.
+
=item C<(src|run|doc|bin)pattern> I<pattern>
adds a pattern (next section) to the respective list of patterns.