From 3ff7aeb61cdf699f4b6db781b7bbc6a1bc634c2c Mon Sep 17 00:00:00 2001 From: Pim van Pelt Date: Sun, 6 Jul 2025 11:09:12 +0000 Subject: [PATCH] Release v1.0.1, clean up debian build --- .gitignore | 2 +- Makefile | 18 ++++++++---------- debian/changelog | 13 ++++++++++++- debian/files | 2 -- src/main.go | 2 +- 5 files changed, 22 insertions(+), 15 deletions(-) delete mode 100644 debian/files diff --git a/.gitignore b/.gitignore index 7ed0d59..e08ab54 100644 --- a/.gitignore +++ b/.gitignore @@ -4,8 +4,8 @@ ipng-router-backup debian/.debhelper/ debian/.gocache/ debian/go/ +debian/files debian/ipng-router-backup/ debian/*.substvars debian/debhelper-build-stamp debian/*.debhelper - diff --git a/Makefile b/Makefile index e7a9d67..54411c7 100644 --- a/Makefile +++ b/Makefile @@ -30,7 +30,6 @@ build: sync-version clean: @echo "Cleaning build artifacts..." rm -f $(BUILD_DIR)/$(BINARY_NAME) - @echo "Clean complete" # Run tests .PHONY: test @@ -53,18 +52,17 @@ pkg-deb: sync-version build .PHONY: clean-pkg clean-pkg: @echo "Cleaning package artifacts..." - @rm -f *.deb - @echo "Package cleanup complete" + rm -f ../$(BINARY_NAME)_*.deb ../$(BINARY_NAME)_*.changes ../$(BINARY_NAME)_*.buildinfo # Show help .PHONY: help help: @echo "Available targets:" - @echo " build - Build the router_backup binary" - @echo " clean - Remove build artifacts" - @echo " test - Run tests" - @echo " fmt - Format Go code" + @echo " build - Build the router_backup binary" + @echo " clean - Remove build artifacts" + @echo " test - Run tests" + @echo " fmt - Format Go code" @echo " sync-version - Sync version from debian/changelog to Go source" - @echo " pkg-deb - Create Debian package" - @echo " clean-pkg - Remove package artifacts" - @echo " help - Show this help message" + @echo " pkg-deb - Create Debian package" + @echo " clean-pkg - Remove package artifacts" + @echo " help - Show this help message" diff --git a/debian/changelog b/debian/changelog index 2d107b2..f93b076 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,14 @@ +ipng-router-backup (1.0.1) stable; urgency=low + + * Add version information to help output + * Add --version/-v flag support + * Add --host flag for selective device processing + * Add version sync between Debian package and binary + * Remove .txt suffix from output files + * Rename binary to ipng-router-backup + + -- Pim van Pelt Sun, 06 Jul 2025 10:45:00 +0100 + ipng-router-backup (1.0.0) stable; urgency=low * Initial release @@ -7,4 +18,4 @@ ipng-router-backup (1.0.0) stable; urgency=low * Command output concatenation with headers * Go implementation for better performance - -- Pim van Pelt Sat, 05 Jul 2025 23:55:00 +0100 \ No newline at end of file + -- Pim van Pelt Sat, 05 Jul 2025 23:55:00 +0100 diff --git a/debian/files b/debian/files deleted file mode 100644 index 2767bf9..0000000 --- a/debian/files +++ /dev/null @@ -1,2 +0,0 @@ -ipng-router-backup_1.0.0_amd64.buildinfo net optional -ipng-router-backup_1.0.0_amd64.deb net optional diff --git a/src/main.go b/src/main.go index c30fc45..e20254c 100644 --- a/src/main.go +++ b/src/main.go @@ -17,7 +17,7 @@ import ( "gopkg.in/yaml.v2" ) -const Version = "1.0.0" +const Version = "1.0.1" // Config structures type Config struct {