texlive[44163] Master/texmf-dist/scripts/texlive/tlmgr.pl: no braces

commits+karl at tug.org commits+karl at tug.org
Wed May 3 01:21:18 CEST 2017


Revision: 44163
          http://tug.org/svn/texlive?view=revision&revision=44163
Author:   karl
Date:     2017-05-03 01:21:18 +0200 (Wed, 03 May 2017)
Log Message:
-----------
no braces for TEXMFAUXTREES value

Modified Paths:
--------------
    trunk/Master/texmf-dist/scripts/texlive/tlmgr.pl

Modified: trunk/Master/texmf-dist/scripts/texlive/tlmgr.pl
===================================================================
--- trunk/Master/texmf-dist/scripts/texlive/tlmgr.pl	2017-05-02 22:46:45 UTC (rev 44162)
+++ trunk/Master/texmf-dist/scripts/texlive/tlmgr.pl	2017-05-02 23:21:18 UTC (rev 44163)
@@ -5560,8 +5560,8 @@
           my $tv = $cf->value($tmfa);
           if (!$val || $val eq "show") {
             if (defined($tv)) {
-              $tv =~ s/^\s*{//;
-              $tv =~ s/}\s*$//;
+              $tv =~ s/^\s*//;
+              $tv =~ s/\s*$//;
               $tv =~ s/,$//;
               my @foo = split(',', $tv);
               print "List of auxiliary texmf trees:\n" if (@foo);
@@ -5576,8 +5576,8 @@
           } elsif ($val eq "add") {
             if (defined($str)) {
               if (defined($tv)) {
-                $tv =~ s/^\s*{//;
-                $tv =~ s/}\s*$//;
+                $tv =~ s/^\s*//;
+                $tv =~ s/\s*$//;
                 $tv =~ s/,$//;
                 my @foo = split(',', $tv);
                 my @new;
@@ -5591,9 +5591,9 @@
                   }
                 }
                 push @new, $str;
-                $cf->value($tmfa, '{' . join(',', @new) . ',}');
+                $cf->value($tmfa, join(',', @new) . ',');
               } else {
-                $cf->value($tmfa, '{' . $str . ',}');
+                $cf->value($tmfa, $str . ',');
               }
             } else {
               tlwarn("$prg: missing argument for auxtrees add\n");
@@ -5602,8 +5602,8 @@
           } elsif ($val eq "remove") {
             if (defined($str)) {
               if (defined($tv)) {
-                $tv =~ s/^\s*{//;
-                $tv =~ s/}\s*$//;
+                $tv =~ s/^\s*//;
+                $tv =~ s/\s*$//;
                 $tv =~ s/,$//;
                 my @foo = split(',', $tv);
                 my @new;
@@ -5617,7 +5617,7 @@
                 }
                 if ($removed) {
                   if ($#new >= 0) {
-                    $cf->value($tmfa, '{' . join(',', @new) . ',}');
+                    $cf->value($tmfa, join(',', @new) . ',');
                   } else {
                     $cf->delete_key($tmfa);
                   }
@@ -5665,7 +5665,7 @@
               } else {
                 info("$arg $key default value: $defval");
               }
-              info(" (kpsewhich -var-value)\n");
+              info(" (from kpsewhich -var-value)\n");
             }
           }
         }
@@ -7163,19 +7163,19 @@
 removing arbitrary additional texmf trees, completely under user
 control.  C<texmf auxtrees show> shows the list of additional trees,
 C<texmf auxtrees add> I<tree> adds a tree to the list, and C<texmf
-auxtrees remove> I<tree> removes a tree from the list (if present). This
-works by manipulating the Kpathsea variable C<TEXMFAUXTREES>, in
-C<ROOT/texmf.cnf>.  Example:
+auxtrees remove> I<tree> removes a tree from the list (if present). The
+trees should not contain an C<ls-R> file. This works by manipulating the
+Kpathsea variable C<TEXMFAUXTREES>, in C<ROOT/texmf.cnf>.  Example:
 
-  tlmgr conf texmf auxtrees add /my/quick/test/tree
-  tlmgr conf texmf auxtrees remove /my/quick/test/tree
+  tlmgr conf texmf auxtrees add /quick/test/tree
+  tlmgr conf texmf auxtrees remove /quick/test/tree
 
 In all cases the configuration file can be explicitly specified via the
 option C<--conffile> I<file>, if desired.
 
-The C<PATH> value shown is as used by C<tlmgr>.  The directory in which
-the C<tlmgr> executable is found is automatically prepended to the PATH
-value inherited from the environment.
+The C<PATH> value shown by C<conf> is as used by C<tlmgr>.  The
+directory in which the C<tlmgr> executable is found is automatically
+prepended to the PATH value inherited from the environment.
 
 Warning: The general facility is here, but tinkering with settings in
 this way is strongly discouraged.  Again, no error checking on either



More information about the tex-live-commits mailing list