diff options
author | Norbert Preining <preining@logic.at> | 2018-02-20 05:44:02 +0000 |
---|---|---|
committer | Norbert Preining <preining@logic.at> | 2018-02-20 05:44:02 +0000 |
commit | 0fc70469f010d1dcfc019095c95e5eb0028a0503 (patch) | |
tree | fb1fe64faad0b461e1cdf88d8c51d4becc8f1f61 | |
parent | 4c593e82e7fe882c64b56eeb237a7c91c179c157 (diff) |
make tlmgr --version --machine-readable output to stdout
git-svn-id: svn://tug.org/texlive/trunk@46683 c570f23f-e606-0410-a88d-b1316a301751
-rwxr-xr-x | Master/texmf-dist/scripts/texlive/tlmgr.pl | 7 |
1 files changed, 6 insertions, 1 deletions
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); } |