diff options
author | Gary Palmer <gpalmer@FreeBSD.org> | 1995-01-22 20:40:48 +0000 |
---|---|---|
committer | Gary Palmer <gpalmer@FreeBSD.org> | 1995-01-22 20:40:48 +0000 |
commit | 4d10a7b4458c5d1e62d53b8135e15ba95f7299da (patch) | |
tree | 80b33e5fffcff315f573cb048500330659e83773 /Mk/bsd.port.mk | |
parent | Replace a /usr/openwin/include with a /usr/X11R6/include. We don't (diff) |
Oops. Fix up the checksum routine - my last commit broke it slightly.
Notes
Notes:
svn path=/head/; revision=802
Diffstat (limited to 'Mk/bsd.port.mk')
-rw-r--r-- | Mk/bsd.port.mk | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/Mk/bsd.port.mk b/Mk/bsd.port.mk index 909505596552..2082fc9f6f03 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.103 1995/01/16 23:33:08 gpalmer Exp $ +# $Id: bsd.port.mk,v 1.5 1995/01/22 20:37:25 gary Exp $ # # Please view me with 4 column tabs! @@ -517,23 +517,23 @@ checksum: fetch @if [ ! -f ${MD5_FILE} ]; then \ echo ">> No MD5 checksum file."; \ else \ - (cd ${DISTDIR}; OK="true"; \ - for file in ${DISTFILES}; do \ - CKSUM=`${MD5} $$file | awk '{print $$4}'`; \ - CKSUM2=`grep "($$file)" ${MD5_FILE} | awk '{print $$4}'`; \ - if [ "$$CKSUM2" = "" ]; then \ - echo ">> No checksum recorded for $$file"; \ - OK="false"; \ - elif [ "$$CKSUM" != "$$CKSUM2" ]; then \ - echo ">> Checksum mismatch for $$file"; \ - exit 1; \ - fi; \ - done); \ - if [ "$$OK" = "true" ]; then \ - echo "Checksums OK."; \ - else \ - echo "Checksums OK for files that have them."; \ - fi; \ + (cd ${DISTDIR}; OK=""; \ + for file in ${DISTFILES}; do \ + CKSUM=`${MD5} $$file | awk '{print $$4}'`; \ + CKSUM2=`grep "($$file)" ${MD5_FILE} | awk '{print $$4}'`; \ + if [ "$$CKSUM2" = "" ]; then \ + echo ">> No checksum recorded for $$file"; \ + OK="false"; \ + elif [ "$$CKSUM" != "$$CKSUM2" ]; then \ + echo ">> Checksum mismatch for $$file"; \ + exit 1; \ + fi; \ + done; \ + if [ "$$OK" = "" ]; then \ + echo "Checksums OK."; \ + else \ + echo "Checksums OK for files that have them."; \ + fi) ; \ fi .endif @@ -556,13 +556,13 @@ ${EXTRACT_COOKIE}: @mkdir -p ${WRKDIR} .if defined(EXTRACT_ONLY) @for file in ${EXTRACT_ONLY}; do \ - if ! (${EXTRACT_CMD} ${EXTRACT_ARGS} ${DISTDIR}/$$file); then \ + if ! ${EXTRACT_CMD} ${EXTRACT_ARGS} ${DISTDIR}/$$file; then \ exit 1; \ fi \ done .else @for file in ${DISTFILES}; do \ - if ! (${EXTRACT_CMD} ${EXTRACT_ARGS} ${DISTDIR}/$$file); then \ + if ! ${EXTRACT_CMD} ${EXTRACT_ARGS} ${DISTDIR}/$$file; then \ exit 1; \ fi \ done |