diff options
author | jkh <jkh@FreeBSD.org> | 1994-09-02 01:32:13 +0000 |
---|---|---|
committer | jkh <jkh@FreeBSD.org> | 1994-09-02 01:32:13 +0000 |
commit | b48533d04a7f373729420d41f6e59b9df60edf2c (patch) | |
tree | 49223fe0eb4665285109b03a7869c6d1da26c5d4 | |
parent | 3e20d084c8c4466d336522f26e7cc5d8a52daf9d (diff) | |
download | FreeBSD-src-b48533d04a7f373729420d41f6e59b9df60edf2c.zip FreeBSD-src-b48533d04a7f373729420d41f6e59b9df60edf2c.tar.gz |
Ok, I've reviewed this and made it work now. ncftp fetching seems to be
working/closer to working now.
Submitted by: jkh
-rw-r--r-- | share/mk/bsd.port.mk | 33 |
1 files changed, 16 insertions, 17 deletions
diff --git a/share/mk/bsd.port.mk b/share/mk/bsd.port.mk index 9563ac1..ac8ec59 100644 --- a/share/mk/bsd.port.mk +++ b/share/mk/bsd.port.mk @@ -1,7 +1,7 @@ # bsd.port.mk - 940820 Jordan K. Hubbard. # This file is in the public domain. # -# $Id: bsd.port.mk,v 1.24 1994/09/01 18:03:37 jkh Exp $ +# $Id: bsd.port.mk,v 1.25 1994/09/02 01:13:47 jkh Exp $ # # Supported Variables and their behaviors: @@ -279,40 +279,39 @@ ${EXTRACT_COOKIE}: @echo "===> Extracting for ${DISTNAME}" @rm -rf ${WRKDIR} @mkdir -p ${WRKDIR} +.if defined(HOME_LOCATION) @if [ ! -f ${DISTFILE} ]; then \ echo ">> Sorry, I can't seem to find: ${DISTFILE}"; \ echo ">> on this system."; \ -.if defined(HOME_LOCATION) if [ -f ${NCFTP} ]; then \ - echo ">> Would you like me to fetch it from: ${HOME_LOCATION}";\ - echo -n ">> with ncftp? [y/n] "; \ - read ans; \ - if [ "$ans" = "y" ]; then \ + echo ">> Attempting to fetch ${HOME_LOCATION}.";\ + if [ ! -d `dirname ${DISTFILE}`; then \ mkdir -p `dirname ${DISTFILE}`; \ - if cd `dirname ${DISTFILE}`; then \ - if ${NCFTP} ${HOME_LOCATION}; then \ - ${EXTRACT_CMD} ${EXTRACT_ARGS}; \ - else \ - echo ">> Couldn't fetch it - please retreive ${DISTFILE} manually and try again."; \ - exit 1; \ - fi \ + fi \ + if cd `dirname ${DISTFILE}`; then \ + if ${NCFTP} ${HOME_LOCATION}; then \ + ${EXTRACT_CMD} ${EXTRACT_ARGS}; \ else \ - echo ">> Couldn't cd to `dirname ${DISTFILE}`. Please correct and try again."; \ + echo ">> Couldn't fetch it - please retreive ${DISTFILE} manually and try again."; \ exit 1; \ fi \ else \ - echo ">> Please ensure ${DISTFILE} exists before trying again."; \ + echo ">> Couldn't cd to `dirname ${DISTFILE}`. Please correct and try again."; \ exit 1; \ fi \ else \ echo ">> Please fetch it from ${HOME_LOCATION} and try again.";\ echo ">> Installing ${NCFTP} can also make this easier in the future."; \ + exit 1; \ fi \ + fi .else - echo ">> <original site unknown>"; \ + @if [ ! -f ${DISTFILE} ]; then \ + echo ">> Sorry, I can't seem to find: ${DISTFILE}"; \ + echo ">> on this system and the original site is unknown."; \ exit 1; \ -.endif fi +.endif @${EXTRACT_CMD} ${EXTRACT_ARGS} ${DISTFILE} @touch -f ${EXTRACT_COOKIE} .endif |