Commit a037c363 authored by Anas Nashif's avatar Anas Nashif Committed by Anas Nashif
Browse files

doc: fixed version parsing for docs

parent adb988a5
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -73,7 +73,7 @@ content: scripts/extract_content.py
	$(Q)$<

kconfig: scripts/genrest/genrest.py
	$(Q)srctree=../ SRCARCH=x86 python $< ../Kconfig reference/kconfig/
	$(Q)srctree=../ KERNELVERSION=1.9.99 SRCARCH=x86 python $< ../Kconfig reference/kconfig/


prep: doxy content kconfig
+2 −2
Original line number Diff line number Diff line
@@ -60,7 +60,7 @@ try:
    makefile_version_major = None
    makefile_version_minor = None
    makefile_patchlevel = None
    for line in open('../Makefile'):
    for line in open('../VERSION'):
        key, val = [x.strip() for x in line.split('=', 2)]
        if key == 'VERSION_MAJOR':
            makefile_version_major = val
@@ -78,7 +78,7 @@ finally:
    else:
        sys.stderr.write('Warning: Could not extract kernel version\n')
        version = release = "unknown version"
        version = release = os.getenv('KERNELVERSION','0.1.0')
        version = release = os.getenv('KERNELVERSION','1.9.0')

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.