mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-30 10:33:13 +00:00
'make install' will now warn the user if their modules directory contains modules not installed by the newly-installed Asterisk
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5520 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
23
Makefile
23
Makefile
@@ -466,8 +466,11 @@ update:
|
|||||||
echo "Not CVS"; \
|
echo "Not CVS"; \
|
||||||
fi
|
fi
|
||||||
|
|
||||||
NEWHEADERS=$(subst include/asterisk/,,$(wildcard include/asterisk/*.h))
|
NEWHEADERS=$(notdir $(wildcard include/asterisk/*.h))
|
||||||
OLDHEADERS=$(filter-out $(NEWHEADERS),$(subst $(DESTDIR)$(ASTHEADERDIR)/,,$(wildcard $(DESTDIR)$(ASTHEADERDIR)/*.h)))
|
OLDHEADERS=$(filter-out $(NEWHEADERS),$(notdir $(wildcard $(DESTDIR)$(ASTHEADERDIR)/*.h)))
|
||||||
|
|
||||||
|
NEWMODS=$(notdir $(wildcard */*.so))
|
||||||
|
OLDMODS=$(filter-out $(NEWMODS),$(notdir $(wildcard $(DESTDIR)$(MODULES_DIR)/*.so)))
|
||||||
|
|
||||||
bininstall: all
|
bininstall: all
|
||||||
mkdir -p $(DESTDIR)$(MODULES_DIR)
|
mkdir -p $(DESTDIR)$(MODULES_DIR)
|
||||||
@@ -531,6 +534,22 @@ bininstall: all
|
|||||||
@echo " + **Note** This requires that you have +"
|
@echo " + **Note** This requires that you have +"
|
||||||
@echo " + doxygen installed on your local system +"
|
@echo " + doxygen installed on your local system +"
|
||||||
@echo " +-------------------------------------------+"
|
@echo " +-------------------------------------------+"
|
||||||
|
@if [ -n "$(OLDMODS)" ]; then \
|
||||||
|
echo " WARNING WARNING WARNING" ;\
|
||||||
|
echo "" ;\
|
||||||
|
echo " Your Asterisk modules directory, located at" ;\
|
||||||
|
echo " $(DESTDIR)$(MODULES_DIR)" ;\
|
||||||
|
echo " contains modules that were not installed by this " ;\
|
||||||
|
echo " version of Asterisk. Please ensure that these" ;\
|
||||||
|
echo " modules are compatible with this version before" ;\
|
||||||
|
echo " attempting to run Asterisk." ;\
|
||||||
|
echo "" ;\
|
||||||
|
for f in $(OLDMODS); do \
|
||||||
|
echo " $$f" ;\
|
||||||
|
done ;\
|
||||||
|
echo "" ;\
|
||||||
|
echo " WARNING WARNING WARNING" ;\
|
||||||
|
fi
|
||||||
|
|
||||||
install: all datafiles bininstall
|
install: all datafiles bininstall
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user