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=${file##${dir}/}
39 get_description ${file}
41 echo -e "\t\t<member name=\"${fname%%.c}.so\" displayname=\"${desc}\">"
42 awk -f build_tools/get_moduledeps ${file}
43 echo -e "\t\t</member>"
45 echo -e "\t</category>"
48 echo "<?xml version="1.0"?>"
51 process_dir apps app APPS Applications
52 process_dir cdr cdr CDR "Call Detail Recording"
53 process_dir channels chan CHANNELS "Channel Drivers"
54 process_dir codecs codec CODECS "Codec Translators"
55 process_dir formats format FORMATS "Format Interpreters"
56 process_dir funcs func FUNCS "Dialplan Functions"
57 process_dir pbx pbx PBX "PBX Modules"
58 process_dir res res RES "Resource Modules"
59 cat build_tools/cflags.xml