[asterisk-commits] trunk r36336 - /trunk/build_tools/prep_moduledeps
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Thu Jun 29 21:33:18 MST 2006
Author: russell
Date: Thu Jun 29 23:33:18 2006
New Revision: 36336
URL: http://svn.digium.com/view/asterisk?rev=36336&view=rev
Log:
make this script work on solaris
Modified:
trunk/build_tools/prep_moduledeps
Modified: trunk/build_tools/prep_moduledeps
URL: http://svn.digium.com/view/asterisk/trunk/build_tools/prep_moduledeps?rev=36336&r1=36335&r2=36336&view=diff
==============================================================================
--- trunk/build_tools/prep_moduledeps (original)
+++ trunk/build_tools/prep_moduledeps Thu Jun 29 23:33:18 2006
@@ -35,10 +35,10 @@
echo -e "\t<category name=\"MENUSELECT_${catsuffix}\" displayname=\"${displayname}\">"
for file in ${dir}/${prefix}*.c
do
- fname=${file##${dir}/}
+ fname=`basename ${file} .c`
get_description ${file}
desc=${TDESC}
- echo -e "\t\t<member name=\"${fname%%.c}\" displayname=\"${desc}\" remove_on_change=\"${dir}/${fname%%.c}.o ${dir}/${fname%%.c}.so\">"
+ echo -e "\t\t<member name=\"${fname}\" displayname=\"${desc}\" remove_on_change=\"${dir}/${fname}.o ${dir}/${fname}.so\">"
awk -f build_tools/get_moduleinfo ${file}
echo -e "\t\t</member>"
done
More information about the asterisk-commits
mailing list