diff options
author | Jordan K. Hubbard <jkh@FreeBSD.org> | 1995-01-30 10:06:56 +0000 |
---|---|---|
committer | Jordan K. Hubbard <jkh@FreeBSD.org> | 1995-01-30 10:06:56 +0000 |
commit | e63223cf3548d56ca7fc38dc3381ebca3a51239a (patch) | |
tree | 01b80bce760f3c6f2f0b26162e45d4327f9374fd /Mk | |
parent | e22844734b4801dca6f639d756fc15e8de39214d (diff) | |
download | freebsd-ports-e63223cf3548d56ca7fc38dc3381ebca3a51239a.zip |
Make fetch a bit more forgiving of subdirs.
Diffstat (limited to 'Mk')
-rw-r--r-- | Mk/bsd.port.mk | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Mk/bsd.port.mk b/Mk/bsd.port.mk index 56df406b6343..df2b3ff56eec 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.106 1995/01/23 18:22:36 jkh Exp $ +# $Id: bsd.port.mk,v 1.107 1995/01/24 02:41:52 jkh Exp $ # # Please view me with 4 column tabs! @@ -484,7 +484,7 @@ fetch: pre-fetch @if [ ! -d ${DISTDIR} ]; then mkdir -p ${DISTDIR}; fi @(cd ${DISTDIR}; \ for file in ${DISTFILES}; do \ - if [ ! -f $$file ]; then \ + if [ ! -f $$file -a ! -f `basename $$file` ]; then \ echo ">> $$file doesn't seem to exist on this system."; \ echo ">> Attempting to fetch it from a master site."; \ for site in ${MASTER_SITES}; do \ @@ -492,7 +492,7 @@ fetch: pre-fetch break; \ fi \ done; \ - if [ ! -f $$file ]; then \ + if [ ! -f $$file -a ! -f `basename $$file` ]; then \ echo ">> Couldn't fetch it - please try to retreive this";\ echo ">> port manually into ${DISTDIR} and try again."; \ exit 1; \ |