File: debver2localesdep.pl

package info (click to toggle)
glibc 2.19-18
  • links: PTS, VCS
  • area: main
  • in suites: jessie-backports, jessie-kfreebsd
  • size: 203,628 kB
  • sloc: ansic: 969,800; asm: 241,205; sh: 10,063; makefile: 8,471; cpp: 3,595; perl: 2,077; pascal: 1,839; awk: 1,704; yacc: 317; sed: 73
file content (18 lines) | stat: -rw-r--r-- 327 bytes parent folder | download | duplicates (18)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/perl

for my $i (0..$#ARGV) {
    $_ = $ARGV[$i];
    /(.*)-(.*)/m;

    $debver = $1;
    $devrev = $2;

    @revs = split('\.', $devrev);

    $devrev = $revs[0];
    $devrev = "$devrev.$revs[1]" if defined($revs[1]) and $revs[1] ne "0";

    print ", " if $i > 0;
    print "glibc-$debver-$devrev";
}
print "\n";