mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH] Documentation: Provide default values for version/release
@ 2019-09-08  0:04 Andrey Smirnov
  2019-09-09  8:49 ` Sascha Hauer
  0 siblings, 1 reply; 2+ messages in thread
From: Andrey Smirnov @ 2019-09-08  0:04 UTC (permalink / raw)
  To: barebox; +Cc: Andrey Smirnov

Provide default values for version/release so it would be possible to
run Sphinx outside of the build system. Useful for rst-sphinx backend
of flycheck in Emacs, for example.

Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
---
 Documentation/conf.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Documentation/conf.py b/Documentation/conf.py
index ec6ec0470b..bcd8633c91 100644
--- a/Documentation/conf.py
+++ b/Documentation/conf.py
@@ -53,9 +53,9 @@ copyright = u'2014, The barebox project'
 # The short X.Y version.
 import os
 
-version = os.environ["KERNELVERSION"]
+version = os.environ.get("KERNELVERSION", 'unknown version')
 # The full version, including alpha/beta/rc tags.
-release = os.environ["KERNELRELEASE"]
+release = os.environ.get("KERNELRELEASE", 'unknown release')
 
 # The language for content autogenerated by Sphinx. Refer to documentation
 # for a list of supported languages.
-- 
2.21.0


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] Documentation: Provide default values for version/release
  2019-09-08  0:04 [PATCH] Documentation: Provide default values for version/release Andrey Smirnov
@ 2019-09-09  8:49 ` Sascha Hauer
  0 siblings, 0 replies; 2+ messages in thread
From: Sascha Hauer @ 2019-09-09  8:49 UTC (permalink / raw)
  To: Andrey Smirnov; +Cc: barebox

On Sat, Sep 07, 2019 at 05:04:32PM -0700, Andrey Smirnov wrote:
> Provide default values for version/release so it would be possible to
> run Sphinx outside of the build system. Useful for rst-sphinx backend
> of flycheck in Emacs, for example.
> 
> Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
> ---
>  Documentation/conf.py | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)

Applied, thanks

Sascha

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-09-09  8:49 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-09-08  0:04 [PATCH] Documentation: Provide default values for version/release Andrey Smirnov
2019-09-09  8:49 ` Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox