This uses the date of doc generation to determine the copyright date
for the trailing date. Based on Jeff Lucovsky solution.
import shlex
import re
import subprocess
+import datetime
on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
# General information about the project.
project = u'Suricata'
-copyright = u'2016-2022, OISF'
+end_year = datetime.datetime.now().date().year
+copyright = u'2016-{}, OISF'.format(end_year)
author = u'OISF'
# The version info for the project you're documenting, acts as replacement for