buildtools: use egrep when we need the "-f patternfile" option
authorBjörn Jacke <bj@sernet.de>
Thu, 26 Jul 2012 16:55:43 +0000 (18:55 +0200)
committerBjoern Jacke <bj@sernet.de>
Thu, 26 Jul 2012 18:49:17 +0000 (20:49 +0200)
Solaris' default grep doesn't know the -f option

Autobuild-User(master): Björn Jacke <bj@sernet.de>
Autobuild-Date(master): Thu Jul 26 20:49:18 CEST 2012 on sn-devel-104

buildtools/compare_config_h3.sh

index a56dd2a147db9636c21ddd9f057c895d0adb3c35..45be1ec34410eb625122f5257fe008a9789b361e 100755 (executable)
@@ -19,8 +19,8 @@ if test "x$DIFF" = "x" ; then
        DIFF="comm -23"
 fi
 
-grep "^.define" $NEW_CONFIG | grep -v -f $EXCEPTIONS | sort > waf-config.h
-grep "^.define" $OLD_CONFIG | grep -v -f $EXCEPTIONS | sort > old-config.h
+grep "^.define" $NEW_CONFIG | egrep -v -f $EXCEPTIONS | sort > waf-config.h
+grep "^.define" $OLD_CONFIG | egrep -v -f $EXCEPTIONS | sort > old-config.h
 
 $DIFF old-config.h waf-config.h
 rm -f old-config.h waf-config.h