aboutsummaryrefslogtreecommitdiffstats
path: root/build_tools/prep_moduledeps
diff options
context:
space:
mode:
authorkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2006-04-24 17:11:45 +0000
committerkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2006-04-24 17:11:45 +0000
commit29f496ef12247a2401d02428fa533020b588f5b6 (patch)
tree170532911902642fdae405ec644509398b0b6ee5 /build_tools/prep_moduledeps
parent3cbcc049473cb374710364337d0d415c56133b0e (diff)
Thanks to the fine work of Russell Bryant and Dancho Lazarov, we now have autoconf and menuselect tools for Asterisk!
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@22267 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'build_tools/prep_moduledeps')
-rwxr-xr-xbuild_tools/prep_moduledeps32
1 files changed, 32 insertions, 0 deletions
diff --git a/build_tools/prep_moduledeps b/build_tools/prep_moduledeps
new file mode 100755
index 000000000..1779123b1
--- /dev/null
+++ b/build_tools/prep_moduledeps
@@ -0,0 +1,32 @@
+#!/bin/sh
+
+process_dir() {
+ dir=${1}
+ prefix=${2}_
+ catsuffix=${3}
+ displayname=${4}
+
+ echo -e "\t<category name=\"MENUSELECT_${catsuffix}\" displayname=\"${displayname}\">"
+ for file in ${dir}/${prefix}*.c
+ do
+ fname=${file##${dir}/}
+ echo -e "\t\t<member name=\"${fname%%.c}.so\">"
+ awk -f build_tools/get_moduledeps ${file}
+ echo -e "\t\t</member>"
+ done
+ echo -e "\t</category>"
+}
+
+echo "<?xml version="1.0"?>"
+echo
+echo "<menu>"
+process_dir apps app APPS Applications
+process_dir cdr cdr CDR "Call Detail Recording"
+process_dir channels chan CHANNELS "Channel Drivers"
+process_dir codecs codec CODECS "Codec Translators"
+process_dir formats format FORMATS "Format Interpreters"
+process_dir funcs func FUNCS "Diaplan Functions"
+process_dir pbx pbx PBX "PBX Modules"
+process_dir res res RES "Resource Modules"
+cat build_tools/cflags.xml
+echo "</menu>"