add support for setting the CFLAGS for voicemail storage options in menuselect

Thanks to kpfleming for the Makefile magic :)


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@34492 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Russell Bryant
2006-06-16 16:17:43 +00:00
parent 65c5d5882c
commit 287fce05d0
5 changed files with 38 additions and 17 deletions

3
build_tools/get_makeopts Normal file
View File

@@ -0,0 +1,3 @@
/\/\*\*\* MAKEOPTS/ {printit=1; next}
/\*\*\*\// {exit}
// {if (printit) print}

View File

@@ -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>"