From 47a95b3f380c2e7b4613605c1ce06a5f605e01e9 Mon Sep 17 00:00:00 2001
From: Luigi Rizzo <rizzo@icir.org>
Date: Fri, 10 Nov 2006 17:22:51 +0000
Subject: [PATCH] manual merge from 1.4: grep -m not available on bsd, use head
 -1 which works for all

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@47445 65c4cc65-6c06-0410-ace0-fbb531ad65f3
---
 build_tools/prep_moduledeps | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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() {
-- 
GitLab