diff mbox

[v2,05/12] doc: automatically set the copyright date

Message ID 20180519125239.89629-6-luc.vanoostenryck@gmail.com (mailing list archive)
State Mainlined, archived
Headers show

Commit Message

Luc Van Oostenryck May 19, 2018, 12:52 p.m. UTC
Sphinx allow to set the copyright date; I would hate to have
to update this every year, so let generate it automatically.

Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
---
 Documentation/conf.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
diff mbox

Patch

diff --git a/Documentation/conf.py b/Documentation/conf.py
index eb576bc09..082cf61a5 100644
--- a/Documentation/conf.py
+++ b/Documentation/conf.py
@@ -17,6 +17,7 @@ 
 
 import os
 import sys
+import datetime
 
 # -- General configuration ------------------------------------------------
 
@@ -47,7 +48,7 @@  master_doc = 'index'
 
 # General information about the project.
 project = 'sparse'
-copyright = '2017'
+copyright = '2003 - ' + str(datetime.datetime.now().year)
 author = "sparse's development community"
 
 # The version info for the project you're documenting, acts as replacement for