Ben Taylor : wineshelllink: Improve /bin/sh and awk compatibility.
Alexandre Julliard
julliard at wine.codeweavers.com
Tue May 1 07:39:27 CDT 2007
Module: wine
Branch: master
Commit: b39381f4f90cc010e480155fb0823c85492096f0
URL: http://source.winehq.org/git/wine.git/?a=commit;h=b39381f4f90cc010e480155fb0823c85492096f0
Author: Ben Taylor <sol11x86 at comcast.net>
Date: Tue May 1 02:23:29 2007 +0000
wineshelllink: Improve /bin/sh and awk compatibility.
---
tools/wineshelllink | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/tools/wineshelllink b/tools/wineshelllink
index b4d76d8..3cfea28 100755
--- a/tools/wineshelllink
+++ b/tools/wineshelllink
@@ -141,7 +141,8 @@ get_menu_entries()
awk '
BEGIN { RS="<" }
/^Filename/ {
- if (match($0,/>/)) {
+ RSTART=index($0,">")
+ if (RSTART>0) {
print substr($0,RSTART+1)
}
}' $tmp
@@ -182,7 +183,8 @@ write_menu_file()
IFS="
"
- for i in $(get_menu_entries "$menu"); do
+ for i in `get_menu_entries "$menu"`
+ do
test "$i" = "$filename" && continue
echo " <Filename>$i</Filename>"
done
More information about the wine-cvs
mailing list