summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xcheck9
1 files changed, 9 insertions, 0 deletions
diff --git a/check b/check
index 601f900..b7c5164 100755
--- a/check
+++ b/check
@@ -90,6 +90,11 @@ class Runcmd:
p = self.runcmd_unchecked(["which", name], stdout=DEVNULL)
return p.returncode == 0
+ def pandoc_is_newer(self):
+ """Is pandoc new enough for --citeproc"""
+ p = self.runcmd(["pandoc", "--help"], stdout=PIPE)
+ return "--citeproc" in p.stdout.decode("UTF-8")
+
def cargo(self, args, **kwargs):
"""Run cargo with arguments."""
self.runcmd(["cargo"] + args, **kwargs)
@@ -329,6 +334,10 @@ def check_tooling(r):
]
for command in commands:
if not r.got_command(command):
+ if command == "pandoc-citeproc":
+ if r.pandoc_is_newer():
+ r.msg(" Fortunately pandoc is new enough for --citeproc, no need for pandoc-citeproc")
+ continue
sys.exit(f"can't find {command}, which is needed for test suite")
if not r.got_command("daemonize") and not r.got_command("/usr/sbin/daemonize"):