texlive[46683] Master/texmf-dist/scripts/texlive/tlmgr.pl: make tlmgr

commits+preining at tug.org commits+preining at tug.org
Tue Feb 20 06:44:03 CET 2018


Revision: 46683
          http://tug.org/svn/texlive?view=revision&revision=46683
Author:   preining
Date:     2018-02-20 06:44:02 +0100 (Tue, 20 Feb 2018)
Log Message:
-----------
make tlmgr --version --machine-readable output to stdout

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	2018-02-20 01:18:06 UTC (rev 46682)
+++ trunk/Master/texmf-dist/scripts/texlive/tlmgr.pl	2018-02-20 05:44:02 UTC (rev 46683)
@@ -436,7 +436,12 @@
   ddebug("arguments: @ARGV\n") if @ARGV;
 
   if ($opts{"version"} || (defined $action && $action eq "version")) {
-    info(give_version());
+    if ($::machinereadable) {
+      # give_version already is machinereadable aware
+      print give_version();
+    } else {
+      info(give_version());
+    }
     exit(0);
   }
 



More information about the tex-live-commits mailing list