[asterisk-commits] trunk r37280 - in /trunk: Makefile build_tools/prep_moduledeps

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Thu Jul 6 19:33:25 MST 2006


Author: kpfleming
Date: Thu Jul  6 21:33:24 2006
New Revision: 37280

URL: http://svn.digium.com/view/asterisk?rev=37280&view=rev
Log:
small cleanup

Modified:
    trunk/Makefile
    trunk/build_tools/prep_moduledeps

Modified: trunk/Makefile
URL: http://svn.digium.com/view/asterisk/trunk/Makefile?rev=37280&r1=37279&r2=37280&view=diff
==============================================================================
--- trunk/Makefile (original)
+++ trunk/Makefile Thu Jul  6 21:33:24 2006
@@ -900,6 +900,6 @@
 
 makeopts.xml: $(foreach dir,$(MOD_SUBDIRS),$(wildcard $(dir)/*.c) $(wildcard $(dir)/*.cc)) build_tools/cflags.xml sounds/sounds.xml
 	@echo "Generating list of available modules ..."
-	@build_tools/prep_moduledeps 2>/dev/null > $@
+	@build_tools/prep_moduledeps > $@
 
 .PHONY: menuselect sounds clean clean-depend dist-clean distclean all _all depend cleantest uninstall _uninstall uninstall-all dont-optimize valgrind $(SUBDIRS_INSTALL) $(SUBDIRS_CLEAN) $(SUBDIRS_CLEAN_DEPEND) $(SUBDIRS_DEPEND) $(SUBDIRS_UNINSTALL) $(SUBDIRS)

Modified: trunk/build_tools/prep_moduledeps
URL: http://svn.digium.com/view/asterisk/trunk/build_tools/prep_moduledeps?rev=37280&r1=37279&r2=37280&view=diff
==============================================================================
--- trunk/build_tools/prep_moduledeps (original)
+++ trunk/build_tools/prep_moduledeps Thu Jul  6 21:33:24 2006
@@ -33,8 +33,11 @@
 	displayname=${4}
 
 	echo -e "\t<category name=\"MENUSELECT_${catsuffix}\" displayname=\"${displayname}\">"
-	for file in `ls ${dir}/${prefix}*.c ${dir}/${prefix}*.cc | sort`
+	for file in `ls ${dir}/${prefix}*.c ${dir}/${prefix}*.cc 2> /dev/null | sort`
 	do
+	        if [ ! -f ${file} ]; then
+			continue
+		fi
 		fname=`basename ${file} .c`
 		fname=`basename ${fname} .cc`
 		get_description ${file}



More information about the asterisk-commits mailing list