]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
doc/conf: Update copyright and regex for version
authorShivani Bhardwaj <shivanib134@gmail.com>
Sat, 21 Dec 2019 00:22:42 +0000 (05:52 +0530)
committerVictor Julien <victor@inliniac.net>
Sat, 21 Dec 2019 06:47:48 +0000 (07:47 +0100)
Make the new regex in compliance with the modern autoconf syntax.
Closes redmine ticket #3423

doc/userguide/conf.py

index 93225d8bab8c4ead60ecd5d17cddca66ec337ac9..95670fc468ea4ad56b3b50ee86ddf6ddff800563 100644 (file)
@@ -50,7 +50,7 @@ master_doc = 'index'
 
 # General information about the project.
 project = u'Suricata'
-copyright = u'2016, OISF'
+copyright = u'2016-2019, OISF'
 author = u'OISF'
 
 # The version info for the project you're documenting, acts as replacement for
@@ -64,7 +64,7 @@ try:
     version = os.environ.get('version', None)
     if not version:
         version = re.search(
-            "AC_INIT\(suricata,\s*(.*)?\)",
+            "AC_INIT\(\[suricata\],\s*\[(.*)?\]\)",
             open("../../configure.ac").read()).groups()[0]
     if not version:
         version = "unknown"