From ad07a2b86334c23fe063be97e8dd44e586c324b4 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 19 Apr 2024 19:03:56 +0200 Subject: Adding debian version 31+20240202-2. Signed-off-by: Daniel Baumann --- debian/highest_symbol_version | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 debian/highest_symbol_version (limited to 'debian/highest_symbol_version') diff --git a/debian/highest_symbol_version b/debian/highest_symbol_version new file mode 100644 index 0000000..ce6039a --- /dev/null +++ b/debian/highest_symbol_version @@ -0,0 +1,20 @@ +#!/usr/bin/perl +# print the highest package version found in the symbols file read as input + +use v5.30; +use warnings; + +use Dpkg::Version; + +my $highest = 0; +while (<>) { + my ($version) = /^\s+\S+\s+(\S+)$/; + next if not $version; + next if version_compare($highest, $version) == 1; + $highest = $version; +} + +die 'could not find a version number in the input' if not $highest; + +say $highest; + -- cgit v1.2.3