[tlbuild] Report install-tl errors on top level?

Hartmut Henkel hartmut_henkel at gmx.de
Wed Jun 3 23:21:21 CEST 2009


Hi,

during installation when there are errors the Perl script still tells
"Welcome to TeX Live!" end exits with 0. Wouldn't it make sense to have
a summary error message with exit code 1, conceptually like

Index: install-tl
===================================================================
--- install-tl	(Revision 13610)
+++ install-tl	(Arbeitskopie)
@@ -1585,6 +1585,10 @@

   close($::LOGFILE) if defined($::LOGFILE);
   print TeXLive::TLUtils::welcome;
+  if (defined($::LOGFILE) && grep(/Error:/i,$::LOGFILE)) {
+    print "There were errors during installation!"
+    exit 1;
+  }
   exit 0;

? Problem is that this doesn't work, it never goes to the error message,
and i don't know enough Perl to fix it.

Regards, Hartmut





More information about the tlbuild mailing list