From 9f62267456332c5d6acff1e343870729cf23345a Mon Sep 17 00:00:00 2001 From: Jeroen Wijenbergh Date: Thu, 19 Feb 2026 15:53:29 +0100 Subject: Debian: Initial package building in upstream repo --- prepare_release.sh | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'prepare_release.sh') diff --git a/prepare_release.sh b/prepare_release.sh index 91ab23a..89d621e 100755 --- a/prepare_release.sh +++ b/prepare_release.sh @@ -19,6 +19,11 @@ if ! command -v "gofumpt" &>/dev/null; then exit 1 fi +if ! command -v "dch" &>/dev/null; then + echo "please install dch to update the debian/changelog" + exit 1 +fi + if [ "$(git tag -l "${PROJECT_VERSION}")" ]; then echo "Version: ${PROJECT_VERSION} already has a tag" exit 1 @@ -44,6 +49,8 @@ if [[ $(git diff) ]]; then git commit -m "Format: Run Ruff" fi +dch -v ${PROJECT_VERSION} --distribution unstable "New version" + # Replace version number # replace in internal/commonver sed -i "s/const Version = \".*\"/const Version = \"${PROJECT_VERSION}\"/" internal/commonver/commonver.go -- cgit v1.2.3