kwo pushed a commit to branch master.
commit 4f866801f70a46382ae057281f810af143f03481
Author: Kim Woelders <[email protected]>
Date: Sat Jun 1 09:03:28 2013 +0200
Fix menu generation issue.
Stop .desktop file processing when seeing a section other than [Desktop
Entry].
Noted by Len E.
---
scripts/e_gen_menu | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/scripts/e_gen_menu b/scripts/e_gen_menu
index b0bf9ef..94178c3 100755
--- a/scripts/e_gen_menu
+++ b/scripts/e_gen_menu
@@ -197,7 +197,9 @@ sub ProcessFile {
open(FI,$f) or return;
while (<FI>) {
s/\s+$//;
- if (/^Name=(.*)$/) {
+ if (/^\[Desktop\s+(\w+)/) {
+ last if ($1 ne "Entry");
+ } elsif (/^Name=(.*)$/) {
$Name = $1;
} elsif ($loc1 && /^Name\[$loc1\]=(.*)$/) {
$Nam1 = $1;
--
------------------------------------------------------------------------------
How ServiceNow helps IT people transform IT departments:
1. A cloud service to automate IT design, transition and operations
2. Dashboards that offer high-level views of enterprise services
3. A single system of record for all IT processes
http://p.sf.net/sfu/servicenow-d2d-j