From 0fc70469f010d1dcfc019095c95e5eb0028a0503 Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Tue, 20 Feb 2018 05:44:02 +0000 Subject: make tlmgr --version --machine-readable output to stdout git-svn-id: svn://tug.org/texlive/trunk@46683 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/scripts/texlive/tlmgr.pl | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'Master') diff --git a/Master/texmf-dist/scripts/texlive/tlmgr.pl b/Master/texmf-dist/scripts/texlive/tlmgr.pl index 2b496eca05c..c063efb51e6 100755 --- a/Master/texmf-dist/scripts/texlive/tlmgr.pl +++ b/Master/texmf-dist/scripts/texlive/tlmgr.pl @@ -436,7 +436,12 @@ sub main { 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); } -- cgit v1.2.3