From 7a0351679b9c040f80b980d0c451e46a1415c0b3 Mon Sep 17 00:00:00 2001
From: Gerhard Gonter <ggonter@gmail.com>
Date: Wed, 15 Feb 2023 03:40:09 +0100
Subject: [PATCH] extract version number from debian/control

---
 build_deb.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/build_deb.sh b/build_deb.sh
index 9e3a64e..12e80df 100755
--- a/build_deb.sh
+++ b/build_deb.sh
@@ -2,7 +2,7 @@
 
 echo 'increment the version number, when necessary!'
 epoch=0
-version=0.1-2
+version=`awk '/Version:/ {print $2}' debian/control`
 pkgdir=tmp/stage/libgg-aix-pm-perl/$epoch/$version
 
 scripts/pmlnk.pm --copy --target $pkgdir/data/usr/share/perl5 .
-- 
GitLab