~ubuntu-branches/debian/sid/kdevelop/sid

« back to all changes in this revision

Viewing changes to debian/cdbs/versions.pl

  • Committer: Bazaar Package Importer
  • Author(s): Jeremy Lainé
  • Date: 2010-05-05 07:21:55 UTC
  • mfrom: (1.2.3 upstream) (5.1.2 squeeze)
  • Revision ID: james.westby@ubuntu.com-20100505072155-h78lx19pu04sbhtn
Tags: 4:4.0.0-2
* Upload to unstable (Closes: #579947, #481832).
* Acknowledge obsolete NMU fixes (Closes: #562410, #546961).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/usr/bin/env perl
2
 
 
3
 
use strict;
4
 
use warnings;
5
 
 
6
 
my $version = `dpkg-parsechangelog | awk '/^Version/ {print \$2}'`;
7
 
my ($version3, $version3_next);
8
 
my ($version2, $version2_next);
9
 
 
10
 
($version3 = $version)  =~ s/-[^-]+$//;
11
 
($version2 = $version3) =~ s/\.[^.]+$//;
12
 
 
13
 
($version3_next = $version3) =~ s/(?<=\.)(\d+)[a-z]?$/($1+1)/e;
14
 
($version2_next = $version2) =~ s/(?<=\.)(\d+)$/($1+1)/e;
15
 
 
16
 
print "KDE-Version3=$version3\n";
17
 
print "KDE-Version2=$version2\n";
18
 
print "KDE-Next-Version3=$version3_next\n";
19
 
print "KDE-Next-Version2=$version2_next\n";