[latex3-commits] [git/LaTeX3-latex3-latex2e] master: simple script to move tlg updates from test to the textfiles directory (or rather move them manually but integrate them automatically) (9b6e4b8)

Frank Mittelbach frank.mittelbach at latex-project.org
Thu Mar 22 14:06:32 CET 2018


Repository : https://github.com/latex3/latex2e
On branch  : master
Link       : https://github.com/latex3/latex2e/commit/9b6e4b85621ef1032009a07530b983f1675d4fed

>---------------------------------------------------------------

commit 9b6e4b85621ef1032009a07530b983f1675d4fed
Author: Frank Mittelbach <frank.mittelbach at latex-project.org>
Date:   Thu Mar 22 14:06:32 2018 +0100

    simple script to move tlg updates from test to the textfiles directory (or rather move them manually but integrate them automatically)


>---------------------------------------------------------------

9b6e4b85621ef1032009a07530b983f1675d4fed
 base/testfiles/install-new-tlg-versions.sh |   53 ++++++++++++++++++++++++++++
 1 file changed, 53 insertions(+)

diff --git a/base/testfiles/install-new-tlg-versions.sh b/base/testfiles/install-new-tlg-versions.sh
new file mode 100644
index 0000000..e3fdba5
--- /dev/null
+++ b/base/testfiles/install-new-tlg-versions.sh
@@ -0,0 +1,53 @@
+
+# simple script to move log files to tlgs (after checking them manually)
+#
+# copy the logs into the testfiles dir and then run this script
+#
+# In latex2e the base engine is etex not pdftex :-( maybe we should 
+# normalize that one day ...
+
+BASEENGINE=etex
+
+echo ===== handling all logs  ===========
+
+for f in `ls *.xetex.log 2>/dev/null` ; do
+  echo Handle FILE $f
+  BASE=`basename $f '.xetex.log'`
+  cmp -s $f $BASE.$BASEENGINE.log
+  if test $? -eq 0 ; then
+    echo ' => files are identical ==='
+    rm $f
+    echo removing $f and $BASE.xetex.tlg
+    rm -f $f $BASE.xetex.tlg
+  else
+    echo ' => files are different ==='
+    mv -f $f $BASE.xetex.tlg
+  fi
+done
+
+for f in `ls *.luatex.log 2>/dev/null` ; do
+  echo Handle FILE $f
+  BASE=`basename $f '.luatex.log'`
+  cmp -s $f $BASE.$BASEENGINE.log
+  if test $? -eq 0 ; then
+    echo ' => files are identical ==='
+    rm $f
+    echo removing $f and $BASE.luatex.tlg
+    rm -f $f $BASE.luatex.tlg
+  else
+    echo ' => files are different ==='
+    mv -f $f $BASE.luatex.tlg
+  fi
+done
+
+for f in `ls *.$BASEENGINE.log 2>/dev/null` ; do
+  echo Handle FILE $f
+  mv -f $f `basename $f ".$BASEENGINE.log"`.tlg
+done
+
+#
+echo ===== surplus logs if any =========
+for f in `ls *.log 2> /dev/null` ; do 
+  echo Handle FILE $f
+  rm -i $f
+done





More information about the latex3-commits mailing list