From 85ff62290b16ca058ee6c1ae275026514c521c57 Mon Sep 17 00:00:00 2001 From: Sven Nierlein Date: Wed, 13 Mar 2024 16:49:30 +0100 Subject: [PATCH] release v0.7.0 --- Changes | 2 +- Makefile | 2 +- buildtools/release.sh | 26 -------------------------- pkg/checknscweb/check.go | 2 +- 4 files changed, 3 insertions(+), 29 deletions(-) delete mode 100755 buildtools/release.sh diff --git a/Changes b/Changes index 99c68ac..1175028 100644 --- a/Changes +++ b/Changes @@ -1,6 +1,6 @@ This file documents the revision history for check_nsc_web -next: +0.7.0 Wed Mar 13 16:48:20 CET 2024 - replace deprecated flag parser - add option to set timeout return state (default is unknown) diff --git a/Makefile b/Makefile index 29c5ca2..cd1a509 100644 --- a/Makefile +++ b/Makefile @@ -223,7 +223,7 @@ version: NEWVERSION=$$(dialog --stdout --inputbox "New Version:" 0 0 "v$$OLDVERSION") && \ NEWVERSION=$$(echo $$NEWVERSION | sed "s/^v//g"); \ if [ "v$$OLDVERSION" = "v$$NEWVERSION" -o "x$$NEWVERSION" = "x" ]; then echo "no changes"; exit 1; fi; \ - sed -i -e 's/VERSION =.*/VERSION = "'$$NEWVERSION'"/g' pkg/$(PROJECT)/main.go + sed -i -e 's/VERSION =.*/VERSION = "'$$NEWVERSION'"/g' pkg/$(PROJECT)/check.go check_nsc_web: build diff --git a/buildtools/release.sh b/buildtools/release.sh deleted file mode 100755 index 02f2c58..0000000 --- a/buildtools/release.sh +++ /dev/null @@ -1,26 +0,0 @@ -#!/bin/bash - -if [ ! -e .git ]; then - echo "not in an development environment, no .git directory found" >&2 - exit 1 -fi - -set -ex - -export LC_TIME=C -OLDVERSION="$(./buildtools/get_version | cut -d . -f 1,2)" - -NEWVERSION=$(dialog --stdout --inputbox "New Version:" 0 0 "v$OLDVERSION") -NEWVERSION=${NEWVERSION#"v"} - -if [ "v$OLDVERSION" = "v$NEWVERSION" -o "x$NEWVERSION" = "x" ]; then - echo "no changes" - exit 1 -fi - -sed -i -e 's/VERSION =.*/VERSION = "'$NEWVERSION'"/g' pkg/checknscweb/check.go -sed -i Changes -e "s/^next:.*/$(printf "%-10s %s" ${NEWVERSION} "$(date)")/" -git add Changes pkg/checknscweb/check.go -git commit -vs -m "release v${NEWVERSION}" -git tag -f "v$NEWVERSION" -git show -1 diff --git a/pkg/checknscweb/check.go b/pkg/checknscweb/check.go index ba73dfa..9fcbfd7 100644 --- a/pkg/checknscweb/check.go +++ b/pkg/checknscweb/check.go @@ -41,7 +41,7 @@ import ( "time" ) -const VERSION = "0.6.3" +const VERSION = "0.7.0" const USAGE = `Usage: check_nsc_web [options] [query parameters]