mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-04 20:04:50 +00:00
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:
3
build_tools/get_makeopts
Normal file
3
build_tools/get_makeopts
Normal file
@@ -0,0 +1,3 @@
|
||||
/\/\*\*\* MAKEOPTS/ {printit=1; next}
|
||||
/\*\*\*\// {exit}
|
||||
// {if (printit) print}
|
@@ -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>"
|
||||
|
Reference in New Issue
Block a user