diff options
author | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-06-16 16:17:43 +0000 |
---|---|---|
committer | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-06-16 16:17:43 +0000 |
commit | 1fdf1962e91d3577a40a8fedf85540f3bedf236e (patch) | |
tree | 7c63656e4c28b1abffd628690ab0151d75d64712 /build_tools | |
parent | 02ea98e80cf5c98b7fae54cfdb7eaa88bd439cb9 (diff) |
add support for setting the CFLAGS for voicemail storage options in menuselect
Thanks to kpfleming for the Makefile magic :)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@34492 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'build_tools')
-rw-r--r-- | build_tools/get_makeopts | 3 | ||||
-rw-r--r-- | build_tools/get_moduleinfo (renamed from build_tools/get_moduledeps) | 0 | ||||
-rwxr-xr-x | build_tools/prep_moduledeps | 10 |
3 files changed, 12 insertions, 1 deletions
diff --git a/build_tools/get_makeopts b/build_tools/get_makeopts new file mode 100644 index 000000000..15ad97b75 --- /dev/null +++ b/build_tools/get_makeopts @@ -0,0 +1,3 @@ +/\/\*\*\* MAKEOPTS/ {printit=1; next} +/\*\*\*\// {exit} +// {if (printit) print} diff --git a/build_tools/get_moduledeps b/build_tools/get_moduleinfo index 08ae61cbf..08ae61cbf 100644 --- a/build_tools/get_moduledeps +++ b/build_tools/get_moduleinfo diff --git a/build_tools/prep_moduledeps b/build_tools/prep_moduledeps index 457bcb99a..1a131cb43 100755 --- a/build_tools/prep_moduledeps +++ b/build_tools/prep_moduledeps @@ -39,15 +39,21 @@ process_dir() { get_description ${file} desc=${TDESC} echo -e "\t\t<member name=\"${fname%%.c}\" displayname=\"${desc}\">" - awk -f build_tools/get_moduledeps ${file} + awk -f build_tools/get_moduleinfo ${file} echo -e "\t\t</member>" done echo -e "\t</category>" + + for file in ${dir}/${prefix}*.c + do + awk -f build_tools/get_makeopts ${file} >> .makeoptstmp + done } echo "<?xml version="1.0"?>" echo echo "<menu>" +rm -f .makeoptstmp process_dir apps app APPS Applications process_dir cdr cdr CDR "Call Detail Recording" process_dir channels chan CHANNELS "Channel Drivers" @@ -58,4 +64,6 @@ process_dir pbx pbx PBX "PBX Modules" process_dir res res RES "Resource Modules" cat build_tools/cflags.xml cat sounds/sounds.xml +cat .makeoptstmp +rm -f .makeoptstmp echo "</menu>" |