diff --git a/Makefile b/Makefile index 62555339..c5c6b4c3 100644 --- a/Makefile +++ b/Makefile @@ -37,6 +37,8 @@ CARGO ?= cargo COMPILED_BINS := \ $(addprefix $(COMPILEDIR)/,$(USR_BIN) $(USR_SBIN) $(SERVICE_BIN)) +export DEB_VERSION DEB_VERSION_UPSTREAM + SERVER_DEB=${PACKAGE}-server_${DEB_VERSION}_${ARCH}.deb CLIENT_DEB=${PACKAGE}-client_${DEB_VERSION}_${ARCH}.deb DOC_DEB=${PACKAGE}-docs_${DEB_VERSION}_all.deb diff --git a/docs/conf.py b/docs/conf.py index b3c18cce..2f83ea37 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -17,7 +17,7 @@ # add these directories to sys.path here. If the directory is relative to the # documentation root, use os.path.abspath to make it absolute, like shown here. # -# import os +import os # import sys # sys.path.insert(0, os.path.abspath('.')) @@ -76,9 +76,11 @@ author = 'Proxmox Support Team' # built documents. # # The short X.Y version. -version = '0.2' +vstr = lambda s: '' if s is None else str(s) + +version = vstr(os.getenv('DEB_VERSION_UPSTREAM')) # The full version, including alpha/beta/rc tags. -release = '0.2-1' +release = vstr(os.getenv('DEB_VERSION')) # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages.