Commit b39381f4 authored by Ben Taylor's avatar Ben Taylor Committed by Alexandre Julliard

wineshelllink: Improve /bin/sh and awk compatibility.

parent b63e9a78
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment