All of lore.kernel.org
 help / color / mirror / Atom feed
From: Akira Yokosawa <akiyks@gmail.com>
To: "Paul E. McKenney" <paulmck@kernel.org>
Cc: perfbook@vger.kernel.org, Akira Yokosawa <akiyks@gmail.com>
Subject: [PATCH -perfbook 2/4] synctex-forward: Skip database check when reverting
Date: Thu, 22 Apr 2021 00:27:32 +0900	[thread overview]
Message-ID: <189c9c75-bed1-7241-b94d-b409deed62e5@gmail.com> (raw)
In-Reply-To: <5a17ce08-9c5d-5e87-6cae-793c6a49c147@gmail.com>

Reverting should finish without warning even if synctex database is
not present.

Signed-off-by: Akira Yokosawa <akiyks@gmail.com>
---
 utilities/synctex-forward.sh | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/utilities/synctex-forward.sh b/utilities/synctex-forward.sh
index 04bdc14d..f0fb4aa6 100755
--- a/utilities/synctex-forward.sh
+++ b/utilities/synctex-forward.sh
@@ -91,6 +91,12 @@ else
 	fi
 fi
 
+# skip database check when reverting
+
+if [ `echo $change | grep -c "revert"` -ne 0 ] ; then
+	exit 0
+fi
+
 # check if synctex database exists
 mainbase="${main%.tex}"
 if [ `ls -1 perfbook* | grep -c $mainbase.synctex` -eq 0 ] ; then
-- 
2.17.1



  parent reply	other threads:[~2021-04-21 15:27 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-21 15:25 [PATCH -perfbook 0/4] index: Add index and acronym tags, take one Akira Yokosawa
2021-04-21 15:26 ` [PATCH -perfbook 1/4] synctex-forward: Update target list Akira Yokosawa
2021-04-21 15:27 ` Akira Yokosawa [this message]
2021-04-21 15:29 ` [PATCH -perfbook 3/4] questions: Reference Tables 17.1 and 17.2 instead of Table 17.3 in -eb build Akira Yokosawa
2021-04-21 15:30 ` [PATCH -perfbook 4/4] index: Add index and acronym tags, take one Akira Yokosawa
2021-04-21 17:43 ` [PATCH -perfbook 0/4] " 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=189c9c75-bed1-7241-b94d-b409deed62e5@gmail.com \
    --to=akiyks@gmail.com \
    --cc=paulmck@kernel.org \
    --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.