From d3c2357a1bb3b53514cf56ab112db5b4c7da3137 Mon Sep 17 00:00:00 2001
From: Patrick Spek
Date: Fri, 10 Mar 2023 09:14:54 +0100
Subject: Set .deb version in Makefile target
---
Makefile | 1 +
etc/debian/control | 1 -
2 files changed, 1 insertion(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
index d63e3d7..d84fcc4 100644
--- a/Makefile
+++ b/Makefile
@@ -58,6 +58,7 @@ pkg-debian:
# Copy Debian's control file
mkdir -pv -- "$(PKG_ROOT)/DEBIAN"
cp -v -- ./etc/debian/control "$(PKG_ROOT)/DEBIAN/control"
+ printf "Version: %s\n" "$(PKG_VERSION)" >> "$(PKG_ROOT)/DEBIAN/control"
# Generate the .deb file
mkdir -pv -- "dist"
diff --git a/etc/debian/control b/etc/debian/control
index 44785a3..a29ec92 100644
--- a/etc/debian/control
+++ b/etc/debian/control
@@ -1,5 +1,4 @@
Package: bashtard
-Version: 1.0
Architecture: all
Maintainer: p.spek@tyil.nl
Description: Configuration Management System in Bash
--
cgit v1.1