Bump pgloader minor version and add checks

The version number in `pgloader --version` was missed in the last few
releases.
This commit is contained in:
Christoph Berg 2024-06-11 16:59:21 +00:00
parent 2079646c81
commit 44f04aff78
2 changed files with 4 additions and 1 deletions

3
debian/rules vendored
View File

@ -18,6 +18,8 @@ MAKEFILE_VERSION = $(shell awk '/^VERSION/ { print $$3 }' Makefile)
DOC_VERSION = $(shell awk '/^release/ { print $$3 }' docs/conf.py | tr -d "'")
SPECFILE_VERSION = $(shell awk '/^Version/ { print $$2 }' pgloader.spec)
DEBIAN_VERSION = $(shell dpkg-parsechangelog -SVersion | cut -d- -f 1)
PGLOADER_MAJOR_VERSION = $(shell awk '/^.defparameter .major-version/ { print $$3 }' src/params.lisp | grep -Eo '[0-9.]+')
PGLOADER_MINOR_VERSION = $(shell awk '/^.defparameter .minor-version/ { print $$3 }' src/params.lisp | grep -Eo '[0-9.]+')
# buildd provides a build environment where $HOME is not writable, but the
# CL compilers here will need to fill-in a per-user cache
@ -30,6 +32,7 @@ override_dh_auto_clean:
[ "$(MAKEFILE_VERSION)" = "$(DOC_VERSION)" ] # Makefile = docs/conf.py version
[ "$(MAKEFILE_VERSION)" = "$(SPECFILE_VERSION)" ] # Makefile = pgloader.spec version
[ "$(MAKEFILE_VERSION)" = "$(DEBIAN_VERSION)" ] # Makefile = debian/changelog version
[ "$(MAKEFILE_VERSION)" = "$(PGLOADER_MAJOR_VERSION).$(PGLOADER_MINOR_VERSION)" ] # Makefile = src/params.lisp version
override_dh_auto_build-indep:
# do nothing

View File

@ -44,7 +44,7 @@
"non-nil when this build is a release build.")
(defparameter *major-version* "3.6")
(defparameter *minor-version* "7")
(defparameter *minor-version* "10")
(defun git-hash ()
"Return the current abbreviated git hash of the development tree."