diff options
author | jkh <jkh@FreeBSD.org> | 1994-09-02 09:32:13 +0800 |
---|---|---|
committer | jkh <jkh@FreeBSD.org> | 1994-09-02 09:32:13 +0800 |
commit | e6238221f627ff11195290404b60b6a16188b299 (patch) | |
tree | 9d1071f281d4752941a9b6bb43c2bef2f2cd971c /Mk | |
parent | bdc2db4ac7c84f5dc25b5caa563b8e8bb15ba129 (diff) | |
download | freebsd-ports-gnome-e6238221f627ff11195290404b60b6a16188b299.tar.gz freebsd-ports-gnome-e6238221f627ff11195290404b60b6a16188b299.tar.zst freebsd-ports-gnome-e6238221f627ff11195290404b60b6a16188b299.zip |
Ok, I've reviewed this and made it work now. ncftp fetching seems to be
working/closer to working now.
Submitted by: jkh
Diffstat (limited to 'Mk')
-rw-r--r-- | Mk/bsd.port.mk | 33 |
1 files changed, 16 insertions, 17 deletions
diff --git a/Mk/bsd.port.mk b/Mk/bsd.port.mk index 9563ac187622..ac8ec59d56a2 100644 --- a/Mk/bsd.port.mk +++ b/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 |