texlive[63934] Master/texmf-dist/scripts/texlive/fmtutil.pl: fmtutil:

commits+preining at tug.org commits+preining at tug.org
Tue Jul 19 03:58:58 CEST 2022


Revision: 63934
          http://tug.org/svn/texlive?view=revision&revision=63934
Author:   preining
Date:     2022-07-19 03:58:57 +0200 (Tue, 19 Jul 2022)
Log Message:
-----------
fmtutil: add cmdline to format build log files

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

Modified: trunk/Master/texmf-dist/scripts/texlive/fmtutil.pl
===================================================================
--- trunk/Master/texmf-dist/scripts/texlive/fmtutil.pl	2022-07-18 23:47:50 UTC (rev 63933)
+++ trunk/Master/texmf-dist/scripts/texlive/fmtutil.pl	2022-07-19 01:58:57 UTC (rev 63934)
@@ -808,6 +808,13 @@
   if ($opts{"dry-run"}) {
     print_info("would copy log file to: $destdir/$logfile\n");
   } else {
+    # Add the actual invocation to the end of the log file
+    if (open(my $fd, ">>", $logfile)) {
+      print $fd "# actual command line used during this run\n# $cmdline\n";
+      close($fd);
+    } else {
+      print_deferred_error("cannot append cmdline to log file");
+    }
     # Here and in the following we use copy instead of move
     # to make sure that in SElinux enabled cases the rules of
     # the destination directory are applied.



More information about the tex-live-commits mailing list.