On Tue, 2010-09-28 at 22:27 +0200, Magnus Fromreide wrote:
> On Tue, 2010-09-28 at 15:28 +0200, Niels Baggesen wrote:
> > The man/Makefile.in uses grep -E in place of egrep, which is GNU
> > specific.
> 
> Actually it isn't. grep -E is posix.
> 
> The correct patch would probably be to use the @EGREP@ symbol that
> autoconf generates for us.

I would prefer the attached patch.

/MF
Index: man/Makefile.in
===================================================================
--- man/Makefile.in	(revision 19400)
+++ man/Makefile.in	(working copy)
@@ -82,7 +82,7 @@
 manaliases: Makefile
 	touch manaliases
 	@for i in $(MAN3_API) ; do				  \
-            for j in `sed -n '/^.SH NAME/,/^.SH SYNOPSIS/p' $$i  | sed -e 's/.- .*//' | sed 's/,.*//'  | grep -vE '^.SH ' `; do \
+            for j in `sed -n '/^.SH NAME/,/^.SH SYNOPSIS/p' $$i  | sed -e 's/.- .*//' | sed 's/,.*//'  | @EGREP@ -v '^.SH ' `; do \
 		echo "making man page alias $$j -> $$i APIs" ;    \
 		echo ".so man3/$$i" > $$j.3 ; 		  \
 	    done                                                  \
------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to