# Description: Make "make check" work
# Author: Rafael Laboissiere <rafael@debian.org>
# Last-Update: 2006-06-23

Index: latex-mk-2.0/testsuite/run_tests.sh
===================================================================
--- latex-mk-2.0.orig/testsuite/run_tests.sh	2007-06-16 05:44:25.000000000 +0800
+++ latex-mk-2.0/testsuite/run_tests.sh	2010-04-19 23:59:36.871942766 +0800
@@ -461,7 +461,8 @@
     #
     # Also, we have to watch out for the gmake entering/leaving directory messages.
     # those will have the full system path so we have to normalize it here
-    cd ${rundir} && ${GMAKE}  $args | sed -e "s;${GMAKE_NAME};gmake;g" \
+    cd ${rundir} && ${GMAKE}  $args | sed -e "s;makeindex;@@@;g" \
+	-e "s;${GMAKE_NAME};gmake;g" -e "s;@@@;makeindex;g" \
 	-e "s;directory .*/testsuite/run/;directory \`testsuite/run/;g" \
 	> ${here}/${GMAKE_REF}/${t}.${sufx}
     if [ "X$regen" != "Xyes" ]; then
