]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
grep -m is not available on BSD, so use head -1 instead
authorLuigi Rizzo <rizzo@icir.org>
Fri, 10 Nov 2006 17:13:34 +0000 (17:13 +0000)
committerLuigi Rizzo <rizzo@icir.org>
Fri, 10 Nov 2006 17:13:34 +0000 (17:13 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@47444 65c4cc65-6c06-0410-ace0-fbb531ad65f3

build_tools/prep_moduledeps

index 93dc896759cd45c12ecec307377e282df561c1d1..21f1f5e4a9c203d1f149972fe30b8b1a71ee8c52 100755 (executable)
@@ -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() {