[pve-devel] applied: [PATCH docs] make changelog single source of version

Thomas Lamprecht t.lamprecht at proxmox.com
Thu Jul 11 19:17:01 CEST 2019


On 7/5/19 11:44 AM, Thomas Lamprecht wrote:
> Signed-off-by: Thomas Lamprecht <t.lamprecht at proxmox.com>
> ---
>  Makefile                | 12 ++++++------
>  pve-doc-generator.mk.in |  4 +---
>  2 files changed, 7 insertions(+), 9 deletions(-)
> 
> diff --git a/Makefile b/Makefile
> index 4399d37..53cf77b 100644
> --- a/Makefile
> +++ b/Makefile
> @@ -1,3 +1,5 @@
> +include /usr/share/dpkg/pkg-info.mk
> +
>  # overwriting below ensures that we can build without full PVE installed
>  DGDIR=.
>  ASCIIDOC_PVE=./asciidoc-pve
> @@ -6,16 +8,13 @@ GEN_PACKAGE=pve-doc-generator
>  DOC_PACKAGE=pve-docs
>  MEDIAWIKI_PACKAGE=pve-docs-mediawiki
>  
> -# also update debian/changelog
> -PKGREL=2
> -
>  GITVERSION:=$(shell git rev-parse HEAD)
>  
>  ARCH:=$(shell dpkg-architecture -qDEB_BUILD_ARCH)
>  
> -GEN_DEB=${GEN_PACKAGE}_${DOCRELEASE}-${PKGREL}_${ARCH}.deb
> -DOC_DEB=${DOC_PACKAGE}_${DOCRELEASE}-${PKGREL}_all.deb
> -MEDIAWIKI_DEB=${MEDIAWIKI_PACKAGE}_${DOCRELEASE}-${PKGREL}_all.deb
> +GEN_DEB=${GEN_PACKAGE}_${DEB_VERSION_UPSTREAM_REVISION}_${ARCH}.deb
> +DOC_DEB=${DOC_PACKAGE}_${DEB_VERSION_UPSTREAM_REVISION}_all.deb
> +MEDIAWIKI_DEB=${MEDIAWIKI_PACKAGE}_${DEB_VERSION_UPSTREAM_REVISION}_all.deb
>  
>  export SOURCE_DATE_EPOCH ?= $(shell dpkg-parsechangelog -STimestamp)
>  SOURCE_DATE_HUMAN := $(shell date -d "@${SOURCE_DATE_EPOCH}")
> @@ -34,6 +33,7 @@ ADOC_SOURCES_GUESS=$(filter-out %-synopsis.adoc %-opts.adoc %-table.adoc, $(wild
>  
>  pve-doc-generator.mk: .pve-doc-depends pve-doc-generator.mk.in
>  	cat pve-doc-generator.mk.in .pve-doc-depends > $@.tmp
> +	sed -i "s/@RELEASE@$$/${DEB_VERSION_UPSTREAM}/" $@.tmp
>  	mv $@.tmp $@
>  
>  -include ./pve-doc-generator.mk
> diff --git a/pve-doc-generator.mk.in b/pve-doc-generator.mk.in
> index e4678a7..d0be25a 100644
> --- a/pve-doc-generator.mk.in
> +++ b/pve-doc-generator.mk.in
> @@ -1,6 +1,4 @@
> -# also update debian/changelog
> -# FIXME: depend on dpkg-dev and use $(DEB_VERSION_UPSTREAM) here?
> -DOCRELEASE=6.0
> +DOCRELEASE=@RELEASE@
>  
>  DGDIR?=/usr/share/pve-doc-generator
>  
> 

due to lack of opposing review and frustration with changing the version
number in multiple places: applied




More information about the pve-devel mailing list