From: Luigi Rizzo Date: Fri, 10 Nov 2006 17:13:34 +0000 (+0000) Subject: grep -m is not available on BSD, so use head -1 instead X-Git-Tag: 1.4.0-beta4~158 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=36808cf771056d880cefd9c20b25c4d37e0c0056;p=thirdparty%2Fasterisk.git grep -m is not available on BSD, so use head -1 instead git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@47444 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/build_tools/prep_moduledeps b/build_tools/prep_moduledeps index 93dc896759..21f1f5e4a9 100755 --- a/build_tools/prep_moduledeps +++ b/build_tools/prep_moduledeps @@ -1,7 +1,7 @@ #!/bin/sh get_description() { - TDESC=`grep -m 1 -e AST_MODULE_INFO ${1} | cut -d '"' -f 2` + TDESC=`grep -e AST_MODULE_INFO ${1} | head -n 1 | cut -d '"' -f 2` } process_dir() {