diff options
author | Jordan K. Hubbard <jkh@FreeBSD.org> | 1996-02-16 11:19:00 +0000 |
---|---|---|
committer | Jordan K. Hubbard <jkh@FreeBSD.org> | 1996-02-16 11:19:00 +0000 |
commit | 5319904a39eaaf6c3b28ef8c707e729764da35eb (patch) | |
tree | 6e1c4c33afc3dd51f199ff12ca750c59e63ee1e6 /Mk/bsd.port.mk | |
parent | (1) Fix "version required" comment (diff) |
Add a check for when the user tries to FTP over a symlink in ${DISTDIR}.
Notes
Notes:
svn path=/head/; revision=2718
Diffstat (limited to 'Mk/bsd.port.mk')
-rw-r--r-- | Mk/bsd.port.mk | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/Mk/bsd.port.mk b/Mk/bsd.port.mk index 73c47a05dc5d..b53db03dcf49 100644 --- a/Mk/bsd.port.mk +++ b/Mk/bsd.port.mk @@ -3,7 +3,7 @@ # bsd.port.mk - 940820 Jordan K. Hubbard. # This file is in the public domain. # -# $Id: bsd.port.mk,v 1.191 1996/02/07 09:54:23 asami Exp $ +# $Id: bsd.port.mk,v 1.192 1996/02/08 00:44:33 adam Exp $ # # Please view me with 4 column tabs! @@ -488,6 +488,12 @@ do-fetch: @(cd ${DISTDIR}; \ for file in ${DISTFILES}; do \ if [ ! -f $$file -a ! -f `/usr/bin/basename $$file` ]; then \ + if [ -h $$file -o -h `/usr/bin/basename $$file` ]; then \ + ${ECHO_MSG} ">> ${DISTDIR}/$$file is a broken symlink."; \ + ${ECHO_MSG} ">> Perhaps a filesystem (most likely a CD) isn't mounted?"; \ + ${ECHO_MSG} ">> Please correct this problem and try again."; \ + exit 1; \ + fi ; \ ${ECHO_MSG} ">> $$file doesn't seem to exist on this system."; \ for site in ${MASTER_SITES}; do \ ${ECHO_MSG} ">> Attempting to fetch from $${site}."; \ @@ -506,6 +512,12 @@ do-fetch: @(cd ${PATCHDIST}; \ for file in ${PATCHFILES}; do \ if [ ! -f $$file -a ! -f `/usr/bin/basename $$file` ]; then \ + if [ -h $$file -o -h `/usr/bin/basename $$file` ]; then \ + ${ECHO_MSG} ">> ${PATCHDIST}/$$file is a broken symlink."; \ + ${ECHO_MSG} ">> Perhaps a filesystem (most likely a CD) isn't mounted?"; \ + ${ECHO_MSG} ">> Please correct this problem and try again."; \ + exit 1; \ + fi ; \ ${ECHO_MSG} ">> $$file doesn't seem to exist on this system."; \ for site in ${PATCH_SITES}; do \ ${ECHO_MSG} ">> Attempting to fetch from $${site}."; \ |