openbsd-ports/x11/fluxbox/patches/patch-util_fluxbox-generate_menu_in
dcoppa 33324b068a Update to fluxbox-1.3.1 plus some patches to fix a couple of crashers
(above all, a use-after-free crash on restart/exit).

OK landry@
Maintainer timed out
2011-04-24 17:32:23 +00:00

16 lines
832 B
Plaintext

$OpenBSD: patch-util_fluxbox-generate_menu_in,v 1.7 2011/04/24 17:32:24 dcoppa Exp $
Adapt to our non-GNU grep
--- util/fluxbox-generate_menu.in.orig Thu Sep 9 14:39:18 2010
+++ util/fluxbox-generate_menu.in Tue Apr 19 14:19:02 2011
@@ -308,7 +308,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