wineshelllink: Improve /bin/sh and awk compatibility.
This commit is contained in:
parent
b63e9a7828
commit
b39381f4f9
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue