From: Shivani Bhardwaj Date: Sat, 21 Dec 2019 00:22:42 +0000 (+0530) Subject: doc/conf: Update copyright and regex for version X-Git-Tag: suricata-5.0.2~39 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=700eebaeccb94bdd0ad6a22466c0026afed6c4df;p=thirdparty%2Fsuricata.git doc/conf: Update copyright and regex for version Make the new regex in compliance with the modern autoconf syntax. Closes redmine ticket #3423 --- diff --git a/doc/userguide/conf.py b/doc/userguide/conf.py index 93225d8bab..95670fc468 100644 --- a/doc/userguide/conf.py +++ b/doc/userguide/conf.py @@ -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"