summaryrefslogtreecommitdiffstats
path: root/debian/squeeze/applications/kde-style-qtcurve/debian/cdbs/versions.pl
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-11-24 20:08:05 -0600
committerSlávek Banko <slavek.banko@axis.cz>2012-09-01 19:24:07 +0200
commit53e3cfefab51bd844a28bc02c47a667690e2384b (patch)
treeb9af9babb2dff7148588ffd761b3fdac8e16b1ad /debian/squeeze/applications/kde-style-qtcurve/debian/cdbs/versions.pl
parent08196adb14359837d49d4504429817919973ad44 (diff)
downloadtde-packaging-53e3cfefab51bd844a28bc02c47a667690e2384b.tar.gz
tde-packaging-53e3cfefab51bd844a28bc02c47a667690e2384b.zip
Fix tde-style-qtcurve on Debian and Ubuntu
(cherry picked from commit 65a3fe0c81c103ee83cd326cf05a3b6ce18f2b4d)
Diffstat (limited to 'debian/squeeze/applications/kde-style-qtcurve/debian/cdbs/versions.pl')
-rw-r--r--debian/squeeze/applications/kde-style-qtcurve/debian/cdbs/versions.pl19
1 files changed, 19 insertions, 0 deletions
diff --git a/debian/squeeze/applications/kde-style-qtcurve/debian/cdbs/versions.pl b/debian/squeeze/applications/kde-style-qtcurve/debian/cdbs/versions.pl
new file mode 100644
index 000000000..9ce11d8a3
--- /dev/null
+++ b/debian/squeeze/applications/kde-style-qtcurve/debian/cdbs/versions.pl
@@ -0,0 +1,19 @@
+#!/usr/bin/env perl
+
+use strict;
+use warnings;
+
+my $version = `dpkg-parsechangelog | awk '/^Version/ {print \$2}'`;
+my ($version3, $version3_next);
+my ($version2, $version2_next);
+
+($version3 = $version) =~ s/-[^-]+$//;
+($version2 = $version3) =~ s/\.[^.]+$//;
+
+($version3_next = $version3) =~ s/(?<=\.)(\d+)[a-z]?$/($1+1)/e;
+($version2_next = $version2) =~ s/(?<=\.)(\d+)$/($1+1)/e;
+
+print "KDE-Version3=$version3\n";
+print "KDE-Version2=$version2\n";
+print "KDE-Next-Version3=$version3_next\n";
+print "KDE-Next-Version2=$version2_next\n";