diff options
Diffstat (limited to 'debian/gen-provides')
-rw-r--r-- | debian/gen-provides | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/debian/gen-provides b/debian/gen-provides new file mode 100644 index 0000000..c9e971e --- /dev/null +++ b/debian/gen-provides @@ -0,0 +1,21 @@ +#!/usr/bin/perl + +use strict; +use warnings; +use Debian::Debhelper::Dh_Lib qw(error); + +my @provides; +my $lowest = Debian::Debhelper::Dh_Lib::LOWEST_VIRTUAL_DEBHELPER_COMPAT_LEVEL + // error("LOWEST_VIRTUAL_DEBHELPER_COMPAT_LEVEL is undef"); +my $highest = Debian::Debhelper::Dh_Lib::HIGHEST_STABLE_COMPAT_LEVEL + // error("HIGHEST_STABLE_COMPAT_LEVEL is undef"); + +if ($highest < $lowest) { + error("HIGHEST_STABLE_COMPAT_LEVEL is lower than LOWEST_VIRTUAL_DEBHELPER_COMPAT_LEVEL"); +} + +for (my $i = $lowest ; $i <= $highest ; $i++) { + push(@provides, "debhelper-compat (= $i)"); +} +print "dh:CompatLevels=" . join(", ", @provides) . "\n"; + |