diff --git a/Makefile b/Makefile index 38fa3cb..20ac9dc 100644 --- a/Makefile +++ b/Makefile @@ -4,7 +4,7 @@ CONFIG_DIR := /etc/unitdore VERSION := $(shell git describe --tags --always --dirty 2>/dev/null || echo "dev") LDFLAGS := -ldflags "-X github.com/warkanum/unitdore/cmd.version=$(VERSION)" -.PHONY: all build install uninstall test lint clean release-version pkg-checksums +.PHONY: all build install uninstall test lint clean release-version version-set pkg-checksums all: build @@ -58,6 +58,12 @@ release-version: git push origin HEAD "$$NEXT"; \ echo "Pushed $$NEXT — release workflow triggered" +## version-set: set version in source and package files, no commit/tag (make version-set NEW_VERSION=X.Y.Z) +version-set: + @echo "$(NEW_VERSION)" | grep -Eq '^[0-9]+\.[0-9]+\.[0-9]+$$' || { echo "usage: make version-set NEW_VERSION=X.Y.Z"; exit 1; } + scripts/bump-version.sh "$(NEW_VERSION)" + @echo "Version set to $(NEW_VERSION) — review with 'git diff', then commit" + ## pkg-checksums: fill the Void checksum from the published release (run after release) pkg-checksums: scripts/update-checksums.sh diff --git a/cmd/root.go b/cmd/root.go index 6b35419..3d3d2a1 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -9,7 +9,7 @@ import ( "github.com/warkanum/unitdore/sysuser" ) -var version = "0.0.11" +var version = "0.0.12" var configPath string diff --git a/pkg/arch/PKGBUILD b/pkg/arch/PKGBUILD index 0234227..10c2525 100644 --- a/pkg/arch/PKGBUILD +++ b/pkg/arch/PKGBUILD @@ -1,6 +1,6 @@ # Maintainer: Hein (Warky Devs) pkgname=unitdore -pkgver=0.0.11 +pkgver=0.0.12 pkgrel=1 pkgdesc="A door you open and close for container units — manage containers via systemd" arch=('x86_64' 'aarch64') diff --git a/pkg/centos/unitdore.spec b/pkg/centos/unitdore.spec index b162bfb..536946f 100644 --- a/pkg/centos/unitdore.spec +++ b/pkg/centos/unitdore.spec @@ -1,5 +1,5 @@ Name: unitdore -Version: 0.0.11 +Version: 0.0.12 Release: 1%{?dist} Summary: Manage container units via systemd diff --git a/pkg/gentoo/app-containers/unitdore/unitdore-0.0.11.ebuild b/pkg/gentoo/app-containers/unitdore/unitdore-0.0.12.ebuild similarity index 100% rename from pkg/gentoo/app-containers/unitdore/unitdore-0.0.11.ebuild rename to pkg/gentoo/app-containers/unitdore/unitdore-0.0.12.ebuild diff --git a/pkg/void/srcpkgs/unitdore/template b/pkg/void/srcpkgs/unitdore/template index e2c5499..4527230 100644 --- a/pkg/void/srcpkgs/unitdore/template +++ b/pkg/void/srcpkgs/unitdore/template @@ -1,6 +1,6 @@ # Template file for 'unitdore' pkgname=unitdore -version=0.0.11 +version=0.0.12 revision=1 build_style=go go_import_path="github.com/warkanum/unitdore" @@ -10,7 +10,7 @@ maintainer="Hein (Warky Devs) " license="MIT" homepage="https://git.warky.dev/wdevs/unitdore" distfiles="${homepage}/releases/download/v${version}/unitdore-v${version}-source.tar.gz" -checksum=0ce16db55d2dbd5437c2820d19c76b0714c1b57568bf6db509184f66b7c4e7a3 +checksum=UPDATE_AFTER_RELEASE post_install() { vman docs/unitdore.1