mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-30 02:26:23 +00:00
Merged revisions 104139 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r104139 | qwell | 2008-02-26 12:09:13 -0600 (Tue, 26 Feb 2008) | 2 lines Since all shells aren't as awesome as bash, we have to fail if somebody tries to use a literal "~" in DESTDIR. ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@104140 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
9
Makefile
9
Makefile
@@ -558,7 +558,14 @@ oldmodcheck:
|
|||||||
echo " WARNING WARNING WARNING" ;\
|
echo " WARNING WARNING WARNING" ;\
|
||||||
fi
|
fi
|
||||||
|
|
||||||
install: datafiles bininstall $(SUBDIRS_INSTALL)
|
badshell:
|
||||||
|
ifneq ($(findstring ~,$(DESTDIR)),)
|
||||||
|
@echo "Your shell doesn't do ~ expansion when expected (specifically, when doing \"make install DESTDIR=~/path\")."
|
||||||
|
@echo "Try replacing ~ with \$$HOME, as in \"make install DESTDIR=\$$HOME/path\"."
|
||||||
|
@exit 1
|
||||||
|
endif
|
||||||
|
|
||||||
|
install: badshell datafiles bininstall $(SUBDIRS_INSTALL)
|
||||||
@if [ -x /usr/sbin/asterisk-post-install ]; then \
|
@if [ -x /usr/sbin/asterisk-post-install ]; then \
|
||||||
/usr/sbin/asterisk-post-install $(DESTDIR) . ; \
|
/usr/sbin/asterisk-post-install $(DESTDIR) . ; \
|
||||||
fi
|
fi
|
||||||
|
Reference in New Issue
Block a user