couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nsla...@apache.org
Subject git commit: Check for pygments >= 1.5
Date Sun, 02 Dec 2012 22:33:39 GMT
Updated Branches:
  refs/heads/docs cad279362 -> 0da958706


Check for pygments >= 1.5


Project: http://git-wip-us.apache.org/repos/asf/couchdb/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb/commit/0da95870
Tree: http://git-wip-us.apache.org/repos/asf/couchdb/tree/0da95870
Diff: http://git-wip-us.apache.org/repos/asf/couchdb/diff/0da95870

Branch: refs/heads/docs
Commit: 0da9587063b1a57db9b6b4e6aa8329d93e4b8e7d
Parents: cad2793
Author: Noah Slater <nslater@apache.org>
Authored: Sun Dec 2 22:33:33 2012 +0000
Committer: Noah Slater <nslater@apache.org>
Committed: Sun Dec 2 22:33:33 2012 +0000

----------------------------------------------------------------------
 configure.ac |   23 +++++++++++++++++++++++
 1 files changed, 23 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb/blob/0da95870/configure.ac
----------------------------------------------------------------------
diff --git a/configure.ac b/configure.ac
index f92a020..49cce16 100644
--- a/configure.ac
+++ b/configure.ac
@@ -622,6 +622,29 @@ else
     AX_PYTHON_MODULE([pygments])
 fi
 
+AC_MSG_CHECKING(pygments version >= 1.5)
+
+python 2> /dev/null << EOF
+import sys
+import pygments
+
+if float(pygments.__version__) >= 1.5:
+    sys.exit(0)
+else:
+    sys.exit(1)
+EOF
+
+if test $? -eq 0; then
+    AC_MSG_RESULT(yes)
+else
+    AC_MSG_RESULT(no)
+    if test x${strictness_enabled} = xyes; then
+        AC_MSG_ERROR([Your copy of pygments is out of date.], 1)
+    else
+        AC_MSG_WARN([Syntax highlighting may not work.])
+    fi
+fi
+
 AC_ARG_VAR([ERL], [path to the `erl' executable])
 AC_ARG_VAR([ERLC], [path to the `erlc' executable])
 


Mime
View raw message