I just tried to install the latest 20020829 beta but I ran into problems
with texlinks and fmtutil on some platforms (not on Linux).

The texlinks script returns 1 instead of 0 even if no errors occurred.
This is due to the fact that exit does not set the $? variable and leaves
it to whatever the previous command returned. This happens on all my
platforms, except Linux. A solution is given by this diff:

--- teTeX-src-beta-20020829/texk/tetex/texlinks.orig
+++ teTeX-src-beta-20020829/texk/tetex/texlinks
@@ -254,4 +254,5 @@
 }
 
 main ${1+"$@"}
+true
 exit 0

On many platforms, but again apparently not on Linux, you can't remove the
directory, you are in at that moment. This leaves behind a temporary
(empty) directory each time one uses fmtutil. A solution is given by the
following diff:

--- teTeX-src-beta-20020829/texk/tetex/fmtutil.orig
+++ teTeX-src-beta-20020829/texk/tetex/fmtutil
@@ -54,7 +54,7 @@
 {
   rc=$?
   $needsCleanup && test -n "$tmpdir" && test -d "$tmpdir" \
-    && { rm -f "$tmpdir"/*; rmdir "$tmpdir"; }
+    && { rm -f "$tmpdir"/*; cd "$tmpdir/.."; rmdir "$tmpdir"; }
   exit $rc
 }
 
Best regards,

Luc Van Eycken

Reply via email to