aboutsummaryrefslogtreecommitdiffstats
path: root/build_tools
diff options
context:
space:
mode:
authorkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2007-02-09 23:51:29 +0000
committerkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2007-02-09 23:51:29 +0000
commita9ac21d345a3221cdb770d949ebc47aade23d262 (patch)
treea977076d3a66e85c154affd11811e7a46a72795a /build_tools
parentdb0f61682e5dea346cc4e237889e69fdbb2b6140 (diff)
fix awk scripts to work when both MODULEINFO and MAKEOPTS are present in a source file
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@53779 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'build_tools')
-rw-r--r--build_tools/get_makeopts2
-rw-r--r--build_tools/get_moduleinfo2
2 files changed, 2 insertions, 2 deletions
diff --git a/build_tools/get_makeopts b/build_tools/get_makeopts
index 15ad97b75..e63622afd 100644
--- a/build_tools/get_makeopts
+++ b/build_tools/get_makeopts
@@ -1,3 +1,3 @@
/\/\*\*\* MAKEOPTS/ {printit=1; next}
-/\*\*\*\// {exit}
+/\*\*\*\// {if (printit) exit}
// {if (printit) print}
diff --git a/build_tools/get_moduleinfo b/build_tools/get_moduleinfo
index 08ae61cbf..d17c28e06 100644
--- a/build_tools/get_moduleinfo
+++ b/build_tools/get_moduleinfo
@@ -1,3 +1,3 @@
/\/\*\*\* MODULEINFO/ {printit=1; next}
-/\*\*\*\// {exit}
+/\*\*\*\// {if (printit) exit}
// {if (printit) print}