diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-16 19:31:31 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-16 19:31:31 +0000 |
commit | ccf0335a3414468d96e72e70ec879026a59bc965 (patch) | |
tree | 46988fe591d9c28bb4e6d79c6687c8f095d06f26 /debian/helpers | |
parent | Adding upstream version 2:1.20~2. (diff) | |
download | golang-defaults-ccf0335a3414468d96e72e70ec879026a59bc965.tar.xz golang-defaults-ccf0335a3414468d96e72e70ec879026a59bc965.zip |
Adding debian version 2:1.20~2.debian/2%1.20_2
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/helpers')
-rwxr-xr-x | debian/helpers/getver.pl | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/debian/helpers/getver.pl b/debian/helpers/getver.pl new file mode 100755 index 0000000..27a87b4 --- /dev/null +++ b/debian/helpers/getver.pl @@ -0,0 +1,14 @@ +#!/usr/bin/perl + +# Extract upstream version from version in changelog. + +use warnings; +use strict; + +use Dpkg::Changelog::Parse; + +my $fields = changelog_parse(); +my $v = $fields->{Version}->version(); +$v =~ /^([0-9]+\.[0-9]+).*/ or die 'INVALID VERSION! (needs X.Y)'; + +printf("%s\n", $1); |