diff options
author | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-07-07 02:33:24 +0000 |
---|---|---|
committer | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-07-07 02:33:24 +0000 |
commit | d901c0f7c06ff45d84b078c23fa01ffda81f46df (patch) | |
tree | a28c60e09941b4a8ec6281936090eb8420a0957e | |
parent | 3bb01466ed6c58fe78be7e63a1aecfcbedb2a028 (diff) |
small cleanup
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@37280 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r-- | Makefile | 2 | ||||
-rwxr-xr-x | build_tools/prep_moduledeps | 5 |
2 files changed, 5 insertions, 2 deletions
@@ -900,6 +900,6 @@ mxml/libmxml.a: 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) diff --git a/build_tools/prep_moduledeps b/build_tools/prep_moduledeps index 3111f5742..76388d50e 100755 --- a/build_tools/prep_moduledeps +++ b/build_tools/prep_moduledeps @@ -33,8 +33,11 @@ process_dir() { 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} |