5 TDESC=`cat $x | grep -e *tdesc | cut -f 2 -d '"'`
6 if [ "$TDESC" = "" ]; then
7 TDESC=`cat $x | grep -A 2 -e *description | grep -e '\"' | cut -f 2 -d '"'`
9 if [ "$TDESC" = "" ]; then
10 TDESC=`cat $x | grep -e MODULE_DESCRIPTION | grep -v return | cut -f 2 -d '"'`
12 if [ "$TDESC" = "" ]; then
13 TDESC=`cat $x | grep -e tdesc\\\[\\\] | cut -f 2 -d '"'`
15 if [ "$TDESC" = "" ]; then
16 TDESC=`cat $x | grep -e desc\\\[\\\] | grep -v description | cut -f 2 -d '"'`
18 if [ "$TDESC" = "" ]; then
19 TDESC=`cat $x | grep -e *desc | grep -v descrip | cut -f 2 -d '"'`
21 if [ "$TDESC" = "" ]; then
22 TDESC=`cat $x | grep -e *dtext | grep static | cut -f 2 -d '"'`
24 if [ "$TDESC" = "" ]; then
25 TDESC=`cat $x | grep -A 2 -e *synopsis | grep -e '\"' | cut -f 2 -d '"'`
35 echo -e "\t<category name=\"MENUSELECT_${catsuffix}\" displayname=\"${displayname}\">"
36 for file in ${dir}/${prefix}*.c
38 fname=`basename ${file} .c`
39 get_description ${file}
41 echo -e "\t\t<member name=\"${fname}\" displayname=\"${desc}\" remove_on_change=\"${dir}/${fname}.o ${dir}/${fname}.so\">"
42 awk -f build_tools/get_moduleinfo ${file}
43 echo -e "\t\t</member>"
45 echo -e "\t</category>"
47 for file in ${dir}/${prefix}*.c
49 awk -f build_tools/get_makeopts ${file} >> .makeoptstmp
53 echo "<?xml version="1.0"?>"
55 echo "<menu name=\"Asterisk Module Selection\">"
57 process_dir apps app APPS Applications
58 process_dir cdr cdr CDR "Call Detail Recording"
59 process_dir channels chan CHANNELS "Channel Drivers"
60 process_dir codecs codec CODECS "Codec Translators"
61 process_dir formats format FORMATS "Format Interpreters"
62 process_dir funcs func FUNCS "Dialplan Functions"
63 process_dir pbx pbx PBX "PBX Modules"
64 process_dir res res RES "Resource Modules"
65 cat build_tools/cflags.xml