aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Cullmann <[email protected]>2015-07-12 22:41:29 +0200
committerChristoph Cullmann <[email protected]>2015-07-12 22:41:29 +0200
commitc3136d28b688616a27af957b0280de86043c47c6 (patch)
treecfbfc3d4a12a9784414e12f4bb9c3a45cf6230c3
parent0d41073ad624a783a5fe2e1b45dd91e547f227a0 (diff)
remove demo scripty now handled by release scripts
-rwxr-xr-xupdate_applications_version.pl45
1 files changed, 0 insertions, 45 deletions
diff --git a/update_applications_version.pl b/update_applications_version.pl
deleted file mode 100755
index 5d92a0e..0000000
--- a/update_applications_version.pl
+++ /dev/null
@@ -1,45 +0,0 @@
-#!/usr/bin/perl -w
-
-use strict;
-use Tie::File;
-
-# get params
-my $file = shift;
-my $major = shift;
-my $minor = shift;
-my $micro = shift;
-
-# validate
-my @array;
-tie @array, 'Tie::File', $file or die "Unable to open given file '$file'.\n";
-
-# replace versions
-my $majorOk = 0;
-my $minorOk = 0;
-my $microOk = 0;
-for (@array) {
- if (s/KDE_APPLICATIONS_VERSION_MAJOR "\d+"/KDE_APPLICATIONS_VERSION_MAJOR "$major"/g) {
- $majorOk = 1;
- }
-
- if (s/KDE_APPLICATIONS_VERSION_MINOR "\d+"/KDE_APPLICATIONS_VERSION_MINOR "$minor"/g) {
- $minorOk = 1;
- }
-
- if (s/KDE_APPLICATIONS_VERSION_MICRO "\d+"/KDE_APPLICATIONS_VERSION_MICRO "$micro"/g) {
- $microOk = 1;
- }
-}
-
-# error?
-if ($majorOk != 1 || $minorOk != 1 || $microOk != 1) {
- die "Failed to replace some versions. Please check if the file contains the right boiler plate code:\n\n"
- ."# KDE Application Version, managed by release script\n"
- ."set (KDE_APPLICATIONS_VERSION_MAJOR \"1\")\n"
- ."set (KDE_APPLICATIONS_VERSION_MAJOR \"1\")\n"
- ."set (KDE_APPLICATIONS_VERSION_MAJOR \"1\")\n"
- ."set (KDE_APPLICATIONS_VERSION \"\${KDE_APPLICATIONS_VERSION_MAJOR}.\${KDE_APPLICATIONS_VERSION_MINOR}.\${KDE_APPLICATIONS_VERSION_MICRO}\")\n\n";
-}
-
-# be done
-exit 0;