[asterisk-commits] branch group/autoconf_and_menuselect r11041 - in /team/group/autoconf_and_men...

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Fri Feb 24 17:52:15 MST 2006


Author: kpfleming
Date: Fri Feb 24 18:52:14 2006
New Revision: 11041

URL: http://svn.digium.com/view/asterisk?rev=11041&view=rev
Log:
add script to automagically build module list and extract dependencies from source files
add sample dependency to res_osp.c

Added:
    team/group/autoconf_and_menuselect/build_tools/get_moduledeps   (with props)
    team/group/autoconf_and_menuselect/build_tools/prep_moduledeps   (with props)
Modified:
    team/group/autoconf_and_menuselect/res/res_osp.c

Added: team/group/autoconf_and_menuselect/build_tools/get_moduledeps
URL: http://svn.digium.com/view/asterisk/team/group/autoconf_and_menuselect/build_tools/get_moduledeps?rev=11041&view=auto
==============================================================================
--- team/group/autoconf_and_menuselect/build_tools/get_moduledeps (added)
+++ team/group/autoconf_and_menuselect/build_tools/get_moduledeps Fri Feb 24 18:52:14 2006
@@ -1,0 +1,3 @@
+/\/\*\*\* MODULEINFO/ {printit=1; next}
+/\*\*\*\// {exit}
+// {if (printit) print}

Propchange: team/group/autoconf_and_menuselect/build_tools/get_moduledeps
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: team/group/autoconf_and_menuselect/build_tools/get_moduledeps
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Propchange: team/group/autoconf_and_menuselect/build_tools/get_moduledeps
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: team/group/autoconf_and_menuselect/build_tools/prep_moduledeps
URL: http://svn.digium.com/view/asterisk/team/group/autoconf_and_menuselect/build_tools/prep_moduledeps?rev=11041&view=auto
==============================================================================
--- team/group/autoconf_and_menuselect/build_tools/prep_moduledeps (added)
+++ team/group/autoconf_and_menuselect/build_tools/prep_moduledeps Fri Feb 24 18:52:14 2006
@@ -1,0 +1,28 @@
+#!/bin/sh
+
+process_dir() {
+	dir=${1}
+	prefix=${2}_
+	catsuffix=${3}
+
+	echo -e "\t<category name=\"MENUSELECT_${catsuffix}\">"
+	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 "<menu>"
+process_dir apps app APPS
+process_dir cdr cdr CDR
+process_dir channels chan CHANNELS
+process_dir codecs codec CODECS
+process_dir formats format FORMATS
+process_dir funcs func FUNCS
+process_dir pbx pbx PBX
+process_dir res res RES
+echo "</menu>"

Propchange: team/group/autoconf_and_menuselect/build_tools/prep_moduledeps
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: team/group/autoconf_and_menuselect/build_tools/prep_moduledeps
------------------------------------------------------------------------------
    svn:executable = *

Propchange: team/group/autoconf_and_menuselect/build_tools/prep_moduledeps
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Propchange: team/group/autoconf_and_menuselect/build_tools/prep_moduledeps
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Modified: team/group/autoconf_and_menuselect/res/res_osp.c
URL: http://svn.digium.com/view/asterisk/team/group/autoconf_and_menuselect/res/res_osp.c?rev=11041&r1=11040&r2=11041&view=diff
==============================================================================
--- team/group/autoconf_and_menuselect/res/res_osp.c (original)
+++ team/group/autoconf_and_menuselect/res/res_osp.c Fri Feb 24 18:52:14 2006
@@ -867,3 +867,8 @@
 {
 	return ASTERISK_GPL_KEY;
 }
+
+/*** MODULEINFO
+     <description>OSP stuff</description>
+     <depend>libosptk</depend>
+ ***/



More information about the asterisk-commits mailing list