[tex4ht-commits] [SCM] tex4ht updated: r837 - trunk/lit
karl at gnu.org.ua
karl at gnu.org.ua
Sat Oct 31 02:19:36 CET 2020
Author: karl
Date: 2020-10-31 03:19:36 +0200 (Sat, 31 Oct 2020)
New Revision: 837
Modified:
trunk/lit/ChangeLog
trunk/lit/tex4ht-mkht.tex
Log:
set -e and exec</dev/null for all Unix scripts
Modified: trunk/lit/ChangeLog
===================================================================
--- trunk/lit/ChangeLog 2020-10-31 01:11:52 UTC (rev 836)
+++ trunk/lit/ChangeLog 2020-10-31 01:19:36 UTC (rev 837)
@@ -1,7 +1,10 @@
2020-10-30 Karl Berry <karl at freefriends.org>
+ * tex4ht-mkht.tex (unix line): use set -e and exec</dev/null
+ for all scripts to stop at first error and avoid interaction, resp.
+
* tex4ht-mkht.tex (windows line): start with @echo off, per Akira.
-
+
* Makefile (tex4ht_mkht_derived): add ht.unix ht.bat.
2020-10-25 Karl Berry <karl at freefriends.org>
Modified: trunk/lit/tex4ht-mkht.tex
===================================================================
--- trunk/lit/tex4ht-mkht.tex 2020-10-31 01:11:52 UTC (rev 836)
+++ trunk/lit/tex4ht-mkht.tex 2020-10-31 01:19:36 UTC (rev 837)
@@ -1098,6 +1098,14 @@
\<unix line\><<<
|firstln#!/bin/sh
+# stop at first error
+set -e
+
+# no interaction on the TeX runs is desirable.
+# Simpler to do it here than on the individual commands;
+# let's hope exec redirections are portable enough.
+exec </dev/null
+
endfirstln
>>>
More information about the tex4ht-commits
mailing list.