All pastes #919202 Raw Edit

Qwell

public text v1 · immutable
#919202 ·published 2008-02-26 17:51 UTC
rendered paste body
Index: Makefile
===================================================================
--- Makefile    (revision 104130)
+++ Makefile    (working copy)
@@ -498,7 +498,13 @@
                echo " WARNING WARNING WARNING" ;\
        fi

-install: datafiles bininstall $(SUBDIRS_INSTALL)
+badshell:
+ifneq ($(findstring ~,$(DESTDIR)),)
+       @echo "Your shell sucks with ~ expansion.  Please replace and try again."
+       @exit 1
+endif
+
+install: badshell datafiles bininstall $(SUBDIRS_INSTALL)
        @if [ -x /usr/sbin/asterisk-post-install ]; then \
                /usr/sbin/asterisk-post-install $(DESTDIR) . ; \
        fi