OSDN Git Service

amarok: remove kconf_update files
authorIvailo Monev <xakepa10@gmail.com>
Sat, 31 Jan 2015 00:44:41 +0000 (00:44 +0000)
committerIvailo Monev <xakepa10@gmail.com>
Sat, 31 Jan 2015 00:44:41 +0000 (00:44 +0000)
amarok/src/CMakeLists.txt
amarok/src/kconf_update/CMakeLists.txt [deleted file]
amarok/src/kconf_update/amarok-2.4.1-tokens_syntax_update.pl [deleted file]
amarok/src/kconf_update/amarok.upd [deleted file]

index 327ec10..7046d40 100644 (file)
@@ -34,7 +34,6 @@ add_subdirectory( services )
 add_subdirectory( scripting/scripts )
 add_subdirectory( aboutdialog/libattica-ocsclient )
 add_subdirectory( transcoding )
-add_subdirectory( kconf_update )
 add_subdirectory( importers )
 
 #####################################################################
diff --git a/amarok/src/kconf_update/CMakeLists.txt b/amarok/src/kconf_update/CMakeLists.txt
deleted file mode 100644 (file)
index 02cc417..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-install( FILES amarok.upd DESTINATION ${KCONF_UPDATE_INSTALL_DIR} )
-install( PROGRAMS
-         amarok-2.4.1-tokens_syntax_update.pl
-         DESTINATION ${KCONF_UPDATE_INSTALL_DIR}
-       )
diff --git a/amarok/src/kconf_update/amarok-2.4.1-tokens_syntax_update.pl b/amarok/src/kconf_update/amarok-2.4.1-tokens_syntax_update.pl
deleted file mode 100644 (file)
index 34f03f3..0000000
+++ /dev/null
@@ -1,38 +0,0 @@
-#!/usr/bin/perl -w
-#
-# This script updates all format strings in amarokc config file
-# according to new syntax, replaces %token with %token% if It's needed.
-
-use strict;
-
-sub isUpdated($) {
-    return ($_[0] =~ m/%[a-zA-Z0-9]+%/);
-}
-
-sub syntaxUpdate($) {
-    my $value = $_[0];
-    $value =~ s/(%[a-zA-Z0-9]+)/$1%/g;
-    return $value;
-}
-
-#replaceKey("section", "key", "new value");
-sub replaceKey($$$) {
-    my ($section, $key, $value) = @_;
-    print("# DELETE $section$key\n");
-    print("$section\n$key=$value\n");
-}
-
-my $section = "";
-
-while (<>) {
-    chomp();
-    if (/^\[/) {
-        $section = $_;
-    }
-    elsif (($section eq "[OrganizeCollectionDialog]" and (/^Custom Scheme/ or /^Format Presets/)) or
-           ($section eq "[FilenameLayoutDialog]" and /^Custom Scheme/ )) {
-        my ($key,$value) = split(/=/);
-        next unless length($value);
-        replaceKey($section, $key, syntaxUpdate($value)) unless isUpdated($value);
-    }
-}
diff --git a/amarok/src/kconf_update/amarok.upd b/amarok/src/kconf_update/amarok.upd
deleted file mode 100644 (file)
index 72a33f1..0000000
+++ /dev/null
@@ -1,4 +0,0 @@
-Id=1
-File=amarokrc
-Options=overwrite
-Script=amarok-2.4.1-tokens_syntax_update.pl,perl