16 lines
832 B
Plaintext
16 lines
832 B
Plaintext
$OpenBSD: patch-util_fluxbox-generate_menu_in,v 1.8 2011/10/30 15:16:13 dcoppa Exp $
|
|
|
|
Adapt to our non-GNU grep
|
|
|
|
--- util/fluxbox-generate_menu.in.orig Sat Oct 29 15:46:15 2011
|
|
+++ util/fluxbox-generate_menu.in Sun Oct 30 13:14:32 2011
|
|
@@ -330,7 +330,7 @@ searchForIcon(){
|
|
# echo "^.${entry_exec}.[[:space:]]*<.*/${icon_base}\....>"
|
|
if [ -f "$entry_icon" ]; then
|
|
# if icon exists and entry does not already exists, add it
|
|
- if ! grep -q -m 1 "^.${entry_exec}.[[:space:]]*<.*/${icon_base}\....>" $ICONMAPPING 2> /dev/null; then
|
|
+ if ! grep -q "^.${entry_exec}.[[:space:]]*<.*/${icon_base}\....>" $ICONMAPPING 2> /dev/null; then
|
|
echo -e "\"${entry_exec}\" \t <${entry_icon}>" >> $ICONMAPPING
|
|
else
|
|
: echo "# mapping already exists for ${entry_exec}" >> $ICONMAPPING
|