[PATCH 06/10] doc: automatically set the copyright date

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx>
---
 Documentation/conf.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/Documentation/conf.py b/Documentation/conf.py
index 8d7c62abc..0e475c07e 100644
--- a/Documentation/conf.py
+++ b/Documentation/conf.py
@@ -18,6 +18,7 @@
 #
 # import os
 # import sys
+import datetime
 
 # -- General configuration ------------------------------------------------
 
@@ -48,7 +49,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
-- 
2.16.0

--
To unsubscribe from this list: send the line "unsubscribe linux-sparse" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Newbies FAQ]     [LKML]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Trinity Fuzzer Tool]

  Powered by Linux