mirror of
https://git.freebsd.org/ports.git
synced 2025-06-27 15:40:32 -04:00
35 lines
1.3 KiB
Text
35 lines
1.3 KiB
Text
--- Makefile.orig 2014-12-16 22:11:04 UTC
|
|
+++ Makefile
|
|
@@ -240,32 +240,12 @@ install: FORCE
|
|
while [ ! -d $$INST_PATH ]; do \
|
|
INST_PATH=`dirname $$INST_PATH`; \
|
|
done; \
|
|
- if [ ! -d "${INST_DIR}" -a ! -w "$$INST_PATH" ] ; then \
|
|
- echo "ERROR: Directory $$INST_PATH is a parent directory of your"; \
|
|
- echo " install directory ${INST_DIR} and is not writable."; \
|
|
- echo " Perhaps you need root access."; \
|
|
- echo " Installation aborted, exiting Make."; \
|
|
- exit; \
|
|
- fi; \
|
|
- if [ -d ${INST_DIR} -a ! -w "${INST_DIR}" ] ; then \
|
|
- echo "ERROR: Your install directory ${INST_DIR} is not writable."; \
|
|
- echo " Perhaps you need root access."; \
|
|
- echo " Installation aborted, exiting Make."; \
|
|
- exit; \
|
|
- fi; \
|
|
result=`echo "${INST_DIR}" | awk '{ if ($$1 ~ /grass/) print $$1 }'`; \
|
|
if [ "$$result" = "" ] ; then \
|
|
echo "WARNING: Your install directory ${INST_DIR}"; \
|
|
echo " does not contain the word 'grass'."; \
|
|
echo " It is highly recommended that the word 'grass' be part"; \
|
|
echo " of your install directory to avoid conflicts."; \
|
|
- echo " Do you want to continue? [y/n]"; \
|
|
- read ans; \
|
|
- ans=`echo "$$ans" | tr A-Z a-z`; \
|
|
- if [ "$$ans" != "y" ] ; then \
|
|
- echo "Installation aborted, exiting Make."; \
|
|
- exit; \
|
|
- fi; \
|
|
fi; \
|
|
${MAKE} real-install
|
|
|