From: "Paul E. McKenney" <paulmck@linux.vnet.ibm.com>
To: Akira Yokosawa <akiyks@gmail.com>
Cc: perfbook@vger.kernel.org
Subject: Re: [PATCH v2 1/6] runlatex.sh: Refactor further
Date: Tue, 14 Mar 2017 09:30:48 -0700 [thread overview]
Message-ID: <20170314163048.GD3637@linux.vnet.ibm.com> (raw)
In-Reply-To: <eed95c0b-befe-4514-55d2-a64b03ab6f28@gmail.com>
On Tue, Mar 14, 2017 at 09:38:31PM +0900, Akira Yokosawa wrote:
> >From a87bed749d870ce45fd7b328f4099a58271dfa20 Mon Sep 17 00:00:00 2001
> From: Akira Yokosawa <akiyks@gmail.com>
> Date: Mon, 13 Mar 2017 20:42:39 +0900
> Subject: [PATCH v2 1/6] runlatex.sh: Refactor further
>
> This won't result in reducing line count, but is worth doing.
I applied and pushed this v2 series, thank you!
Thanx, Paul
> Signed-off-by: Akira Yokosawa <akiyks@gmail.com>
> ---
> utilities/runlatex.sh | 27 +++++++++++++++++----------
> 1 file changed, 17 insertions(+), 10 deletions(-)
>
> diff --git a/utilities/runlatex.sh b/utilities/runlatex.sh
> index e6b3938..cece545 100644
> --- a/utilities/runlatex.sh
> +++ b/utilities/runlatex.sh
> @@ -39,6 +39,17 @@ diff_warning () {
> fi
> }
>
> +identical_warnings () {
> + if test -r $basename-warning-prev.log
> + then
> + if test "$iter" -gt "$min_iter" && diff_warning
> + then
> + return 0 ;
> + fi
> + fi
> + return 1 ;
> +}
> +
> iterate_latex () {
> pdflatex $basename > /dev/null 2>&1 < /dev/null || :
> if grep -q '! Emergency stop.' $basename.log
> @@ -76,27 +87,23 @@ rm -f $basename-first.log
> iter=2
> echo "pdflatex 2 for $basename.pdf # for possible bib update"
> iterate_latex
> +min_iter=2
> while grep -q 'LaTeX Warning: There were undefined references' $basename.log
> do
> - if test -r $basename-warning-prev.log
> + if identical_warnings
> then
> - if test "$iter" -gt 2 && diff_warning
> - then
> - break
> - fi
> + break
> fi
> iter=`expr $iter + 1`
> echo "pdflatex $iter for $basename.pdf # remaining undefined refs"
> iterate_latex
> done
> +min_iter=3
> while grep -q 'LaTeX Warning: Label(s) may have changed' $basename.log
> do
> - if test -r $basename-warning-prev.log
> + if identical_warnings
> then
> - if test "$iter" -gt 3 && diff_warning
> - then
> - break
> - fi
> + break
> fi
> iter=`expr $iter + 1`
> echo "pdflatex $iter for $basename.pdf # label(s) may have changed"
> --
> 2.7.4
>
>
next prev parent reply other threads:[~2017-03-14 16:30 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-03-13 22:43 [PATCH 0/6] Misc updates and fixes Akira Yokosawa
2017-03-13 22:44 ` [PATCH 1/6] runlatex.sh: Refactor further Akira Yokosawa
2017-03-13 22:45 ` [PATCH 2/6] formal/spinhint: Fix typo Akira Yokosawa
2017-03-13 22:46 ` [PATCH 3/6] formal/spinhint: Adjust option of enumerate list Akira Yokosawa
2017-03-13 22:47 ` [PATCH 4/6] formal/spinhint: Refer explicit Figure labels Akira Yokosawa
2017-03-13 22:48 ` [PATCH 5/6] advsync/memorybarriers: Refer explicit Figure label Akira Yokosawa
2017-03-13 22:49 ` [PATCH 6/6] advsync/memorybarriers: Distinguish 'CPU family' from 'CPU' Akira Yokosawa
2017-03-14 12:37 ` [PATCH v2 0/6] Misc updates Akira Yokosawa
2017-03-14 12:38 ` [PATCH v2 1/6] runlatex.sh: Refactor further Akira Yokosawa
2017-03-14 16:30 ` Paul E. McKenney [this message]
2017-03-14 12:39 ` [PATCH v2 2/6] formal/spinhint: Fix typo Akira Yokosawa
2017-03-14 12:40 ` [PATCH v2 3/6] formal/spinhint: Adjust option of enumerate list Akira Yokosawa
2017-03-14 12:41 ` [PATCH v2 4/6] formal/spinhint: Reference by Figure labels Akira Yokosawa
2017-03-14 12:42 ` [PATCH v2 5/6] advsync/memorybarriers: Reference by Figure label Akira Yokosawa
2017-03-14 12:43 ` [PATCH v2 6/6] advsync/memorybarriers: Distinguish 'CPU family' from 'CPU' Akira Yokosawa
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=20170314163048.GD3637@linux.vnet.ibm.com \
--to=paulmck@linux.vnet.ibm.com \
--cc=akiyks@gmail.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox