diff options
Diffstat (limited to 'Master/tlpkg/TeXLive/TLPSRC.pm')
-rw-r--r-- | Master/tlpkg/TeXLive/TLPSRC.pm | 9 |
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. |