diff options
author | jkh <jkh@FreeBSD.org> | 1995-01-10 20:23:44 +0800 |
---|---|---|
committer | jkh <jkh@FreeBSD.org> | 1995-01-10 20:23:44 +0800 |
commit | f46f7d916568e49c86bcabb99ecf0e4dc22d19c7 (patch) | |
tree | 6a4a5979f1b69348fabef15090566bdd636c2712 /Mk/bsd.port.mk | |
parent | ba52cfaa62b78523c863f2586552775a6260ea52 (diff) | |
download | freebsd-ports-gnome-f46f7d916568e49c86bcabb99ecf0e4dc22d19c7.tar.gz freebsd-ports-gnome-f46f7d916568e49c86bcabb99ecf0e4dc22d19c7.tar.zst freebsd-ports-gnome-f46f7d916568e49c86bcabb99ecf0e4dc22d19c7.zip |
Catch case where extraction fails. Thanks!
Diffstat (limited to 'Mk/bsd.port.mk')
-rw-r--r-- | Mk/bsd.port.mk | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/Mk/bsd.port.mk b/Mk/bsd.port.mk index 7a85bf424257..bee250383872 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.97 1995/01/05 08:15:53 asami Exp $ +# $Id: bsd.port.mk,v 1.98 1995/01/06 22:14:12 ache Exp $ # # Please view me with 4 column tabs! @@ -549,11 +549,15 @@ ${EXTRACT_COOKIE}: @mkdir -p ${WRKDIR} .if defined(EXTRACT_ONLY) @for file in ${EXTRACT_ONLY}; do \ - ${EXTRACT_CMD} ${EXTRACT_ARGS} ${DISTDIR}/$$file ; \ + if ${EXTRACT_CMD} ${EXTRACT_ARGS} ${DISTDIR}/$$file; then \ + exit 1; \ + fi \ done .else @for file in ${DISTFILES}; do \ - ${EXTRACT_CMD} ${EXTRACT_ARGS} ${DISTDIR}/$$file ; \ + if ${EXTRACT_CMD} ${EXTRACT_ARGS} ${DISTDIR}/$$file; then \ + exit 1; \ + fi \ done .endif @${TOUCH} ${TOUCH_FLAGS} ${EXTRACT_COOKIE} |