doc/conf: Update copyright and regex for version

Make the new regex in compliance with the modern autoconf syntax.
Closes redmine ticket #3423
pull/4465/head
Shivani Bhardwaj 5 years ago committed by Victor Julien
parent 1666bc0ad1
commit 700eebaecc

@ -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"

Loading…
Cancel
Save