Skip to content

Commit

Permalink
Bump pgloader minor version and add checks
Browse files Browse the repository at this point in the history
The version number in `pgloader --version` was missed in the last few
releases.
  • Loading branch information
df7cb committed Jun 11, 2024
1 parent 2079646 commit 44f04af
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions debian/rules
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/params.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -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."
Expand Down

0 comments on commit 44f04af

Please sign in to comment.