summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorWalter Doekes <walter+asterisk@wjd.nu>2014-10-12 07:56:26 +0000
committerWalter Doekes <walter+asterisk@wjd.nu>2014-10-12 07:56:26 +0000
commit6644fd46e705450a1e657e61ff95e991ceb85a9c (patch)
tree431d4c156209611adf845958d8d0ada501d1efc1 /Makefile
parent1e6c3d1a264d59af22427afcb5d0abdef2cbfb30 (diff)
build: Relax badshell tilde test to allow for ~ in middle of DESTDIR.
The main Makefile has a target test called 'badshell' that tests if DESTDIR does not happen to have an an-expanded tilde (~). This might be the case if you run: make install DESTDIR=~/somewhere/ That test also disallowed valid tildes in directory names. The test is now changed to only trigger on a tilde at the start of the path. ASTERISK-13797 #close Reported by: Tzafrir Cohen Review: https://reviewboard.asterisk.org/r/4064/ ........ Merged revisions 425291 from http://svn.asterisk.org/svn/asterisk/branches/1.8 ........ Merged revisions 425292 from http://svn.asterisk.org/svn/asterisk/branches/11 ........ Merged revisions 425293 from http://svn.asterisk.org/svn/asterisk/branches/12 git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/13@425294 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 2602d6dc5..ba8110f76 100644
--- a/Makefile
+++ b/Makefile
@@ -622,7 +622,7 @@ oldmodcheck:
fi
badshell:
-ifneq ($(findstring ~,$(DESTDIR)),)
+ifneq ($(filter ~%,$(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