All of lore.kernel.org
 help / color / mirror / Atom feed
From: Akira Yokosawa <akiyks@gmail.com>
To: paulmck@linux.vnet.ibm.com
Cc: perfbook@vger.kernel.org, Akira Yokosawa <akiyks@gmail.com>
Subject: [PATCH 2/2] runlatex.sh: Fix while loop condition
Date: Thu, 21 Apr 2016 23:32:24 +0900	[thread overview]
Message-ID: <5718E478.3000406@gmail.com> (raw)
In-Reply-To: <5718E390.1090309@gmail.com>

From a5cb77713f4720592f75db71394fcad784ca480e Mon Sep 17 00:00:00 2001
From: Akira Yokosawa <akiysw@gmail.com>
Date: Thu, 21 Apr 2016 22:11:06 +0900
Subject: [PATCH 2/2] runlatex.sh: Fix while loop condition

After commit 33b93f8258f5 ("qqz: Cross-link questions and answers"),
'make' becomes to terminate prematurely with warning messages such as

>   Latex Warning: There were undefined references
>   Latex Warning: There were multiply-defined labels.

This can be dealt with loosening loop condition in runlatex.sh
which is given to 'grep' command.
Also, This commit increases the iteration max count to accommodate
the required number of 'pdflatex' invocations caused by qqz cross-link.

Signed-off-by: Akira Yokosawa <akiysw@gmail.com>
---
 utilities/runlatex.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/utilities/runlatex.sh b/utilities/runlatex.sh
index 8d2d77a..15d96c1 100644
--- a/utilities/runlatex.sh
+++ b/utilities/runlatex.sh
@@ -47,7 +47,7 @@ then
 		echo "No bibliography directory, skipping bibtex."
 	fi
 fi
-while grep -q 'LaTeX Warning: Label(s) may have changed. Rerun to get cross-references right.' $basename.log
+while grep -q 'LaTeX Warning:' $basename.log
 do
 	iter=`expr $iter + 1`
 	echo "pdflatex $iter"
@@ -56,7 +56,7 @@ do
 	then
 		echo "----- Fatal latex error, see $basename.log for details. -----"
 	fi
-	if test "$iter" -eq 4
+	if test "$iter" -eq 5
 	then
 		echo "Iteration limit: $iter passes through pdflatex"
 		exit 1
-- 
1.9.1


  parent reply	other threads:[~2016-04-21 14:32 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-04-21 14:28 [PATCH 0/2] qqz and runlatex improvements Akira Yokosawa
2016-04-21 14:30 ` [PATCH 1/2] qqz: Improve accuracy of cross-links Akira Yokosawa
2016-04-21 14:32 ` Akira Yokosawa [this message]
2016-04-21 16:27   ` [PATCH 2/2] runlatex.sh: Fix while loop condition Paul E. McKenney
2016-04-21 22:05     ` Akira Yokosawa
2016-04-21 23:54       ` Paul E. McKenney
2016-04-22 12:58         ` Akira Yokosawa
2016-04-22 13:34           ` Paul E. McKenney
2016-04-22 14:20             ` Akira Yokosawa
2016-04-22 15:28               ` Paul E. McKenney
2016-04-23  2:14             ` Akira Yokosawa
2016-04-23  5:44               ` Paul E. McKenney

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5718E478.3000406@gmail.com \
    --to=akiyks@gmail.com \
    --cc=paulmck@linux.vnet.ibm.com \
    --cc=perfbook@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.