scripts/fixup-desktop.awk: fix regexp

This commit is contained in:
Дмитрий Левин 2013-01-11 22:36:49 +00:00
parent 1dbafc43ba
commit 53e2358f62

View File

@ -6,8 +6,8 @@ BEGIN {FS = "="}
# 2. Icon= .png/svg/xpm cleanup if not absolute # 2. Icon= .png/svg/xpm cleanup if not absolute
/^Icon=[^/].*\.(png|svg|xpm)$/ {sub (/\.(png|svg|xpm)$/,"")} /^Icon=[^/].*\.(png|svg|xpm)$/ {sub (/\.(png|svg|xpm)$/,"")}
# 3. trailing ; in MimeType=, Category= # 3. trailing ; in MimeType=, Category=
/^MimeType=.*[^[:blank:];][:blank:]*$/ {$0=$0 ";"} /^MimeType=.*[^[:blank:];][[:blank:]]*$/ {$0=$0 ";"}
/^Categories=.*[^[:blank:];][:blank:]*$/ {$0=$0 ";"} /^Categories=.*[^[:blank:];][[:blank:]]*$/ {$0=$0 ";"}
# 4. Category: subst Desktop -> X-Desktop and so on # 4. Category: subst Desktop -> X-Desktop and so on
# kill Application; in category # kill Application; in category
/^Categories=/ { /^Categories=/ {