File: gen-provides

package info (click to toggle)
debhelper 12.1.1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 4,072 kB
  • sloc: perl: 10,850; makefile: 120; sh: 8
file content (16 lines) | stat: -rw-r--r-- 468 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/usr/bin/perl

use strict;
use warnings;
use Debian::Debhelper::Dh_Version;
use Debian::Debhelper::Dh_Lib ();

my @provides;
my $version = $Debian::Debhelper::Dh_Version::version;
$version =~ s/~.*//; # Drop backports marker
$version =~ s/^\d+\K\..*//;
for (my $i = Debian::Debhelper::Dh_Lib::LOWEST_VIRTUAL_DEBHELPER_COMPAT_LEVEL ; $i <= $version ; $i++) {
    push(@provides, "debhelper-compat (= $i)");
}
print "dh:CompatLevels=" . join(", ", @provides) . "\n";