summaryrefslogtreecommitdiffstats
path: root/kicker/kicker/kicker-3.5-tdeconfigXTize.pl
diff options
context:
space:
mode:
Diffstat (limited to 'kicker/kicker/kicker-3.5-tdeconfigXTize.pl')
-rwxr-xr-xkicker/kicker/kicker-3.5-tdeconfigXTize.pl37
1 files changed, 37 insertions, 0 deletions
diff --git a/kicker/kicker/kicker-3.5-tdeconfigXTize.pl b/kicker/kicker/kicker-3.5-tdeconfigXTize.pl
new file mode 100755
index 000000000..e836116d7
--- /dev/null
+++ b/kicker/kicker/kicker-3.5-tdeconfigXTize.pl
@@ -0,0 +1,37 @@
+#!/usr/bin/perl
+
+$detailed = 1;
+$namesfirst = 1;
+
+while (<>)
+{
+ ($key, $value) = ($_ =~ /([^=]+)=[ \t]*([^\n]+)/);
+ if ($key eq "DetailedMenuEntries")
+ {
+ if ($value eq "false")
+ {
+ $detailed = 0;
+ }
+ }
+ elsif ($key eq "DetailedEntriesNamesFirst")
+ {
+ if ($value eq "false")
+ {
+ $namesfirst = 0;
+ }
+ }
+}
+
+if (not $detailed)
+{
+ print "MenuEntryFormat=NameOnly\n";
+}
+elsif ($namesfirst)
+{
+ print "MenuEntryFormat=NameAndDescription\n";
+}
+else
+{
+ print "MenuEntryFormat=DescriptionAndName\n";
+}
+