diff options
author | ache <ache@FreeBSD.org> | 1995-01-07 06:14:12 +0800 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 1995-01-07 06:14:12 +0800 |
commit | d0950eab1dbb5ab52783f760a7e62b131289fb08 (patch) | |
tree | 5d8b886bdbbf8b31d85c68f04785cba3104346c2 /Mk/bsd.port.mk | |
parent | 2d98e30f50e6bf4668d54847ebbc9c5bb231b404 (diff) | |
download | freebsd-ports-gnome-d0950eab1dbb5ab52783f760a7e62b131289fb08.tar.gz freebsd-ports-gnome-d0950eab1dbb5ab52783f760a7e62b131289fb08.tar.zst freebsd-ports-gnome-d0950eab1dbb5ab52783f760a7e62b131289fb08.zip |
Move pre-extract target inside COOKIE
Add checksum check for extract, if checksum file present
Diffstat (limited to 'Mk/bsd.port.mk')
-rw-r--r-- | Mk/bsd.port.mk | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/Mk/bsd.port.mk b/Mk/bsd.port.mk index 2e018e39867f..7a85bf424257 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.96 1995/01/05 02:15:05 jkh Exp $ +# $Id: bsd.port.mk,v 1.97 1995/01/05 08:15:53 asami Exp $ # # Please view me with 4 column tabs! @@ -516,9 +516,8 @@ makesum: fetch checksum: fetch @if [ ! -f ${MD5_FILE} ]; then \ echo ">> No MD5 checksum file."; \ - exit 1; \ - fi - @(cd ${DISTDIR}; \ + else \ + (cd ${DISTDIR}; \ for file in ${DISTFILES}; do \ CKSUM=`${MD5} $$file | awk '{print $$4}'`; \ CKSUM2=`grep "($$file)" ${MD5_FILE} | awk '{print $$4}'`; \ @@ -526,8 +525,9 @@ checksum: fetch echo ">> Checksum mismatch for $$file"; \ exit 1; \ fi; \ - done) - @echo "Checksums OK." + done); \ + echo "Checksums OK."; \ + fi .endif .if !target(pre-extract) @@ -540,9 +540,10 @@ pre-extract: # because if the user interrupts the extract in the middle (and it's often # a long procedure), we get tricked into thinking that we've got a good dist # in ${WRKDIR}. -extract: fetch pre-extract ${EXTRACT_COOKIE} +extract: fetch ${EXTRACT_COOKIE} ${EXTRACT_COOKIE}: + @${MAKE} ${.MAKEFLAGS} checksum pre-extract @echo "===> Extracting for ${DISTNAME}" @rm -rf ${WRKDIR} @mkdir -p ${WRKDIR} |