set version number via autoconf

This commit is contained in:
Sandro Jäckel 2022-10-25 15:46:33 +02:00
parent ce5dfe3501
commit 36744e5b20
No known key found for this signature in database
GPG key ID: B1763F8651144063

View file

@ -30,8 +30,8 @@ use IO::Socket::INET;
use Socket qw(AF_INET AF_INET6 PF_INET PF_INET6);
use Sys::Hostname;
use version 0.77; our $VERSION = version->declare('v3.10.0');
(my $version = $VERSION->stringify()) =~ s/^v//;
use version 0.77; our $VERSION = version->declare('@PACKAGE_VERSION@');
my $version = $VERSION->stringify();
my $programd = $0;
$programd =~ s%^.*/%%;
my $program = $programd;