File: set-documentation-version-as-patch-not-build-edit.patch

package info (click to toggle)
coreboot 24.12%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 210,640 kB
  • sloc: ansic: 1,640,478; sh: 15,676; python: 10,743; perl: 10,186; asm: 8,483; makefile: 5,097; cpp: 4,724; pascal: 2,327; ada: 1,928; yacc: 1,264; lex: 731; sed: 75; lisp: 5; ruby: 5; awk: 4
file content (27 lines) | stat: -rw-r--r-- 794 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
From: Ahmad Khalifa <ahmad@khalifa.ws>
Date: Fri, 15 Nov 2024 14:17:10 +0000
Forwarded: not-needed
Subject: [PATCH] Set Documentation version as patch, not build edit

---
 Documentation/conf.py | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

--- a/Documentation/conf.py
+++ b/Documentation/conf.py
@@ -7,12 +7,14 @@
 # https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information
 
 import subprocess
+import os
 
 project = 'coreboot'
 copyright = 'CC-by 4.0 the coreboot project'
 author = 'the coreboot project'
 
-release = subprocess.check_output(('git', 'describe')).decode("utf-8")
+# release = subprocess.check_output(('git', 'describe')).decode("utf-8")
+release = os.environ['DEB_VERSION']
 # The short X.Y version.
 version = release.split("-")[0]