diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2009-04-17 03:58:56 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2009-04-17 03:58:56 +0000 |
commit | e886d2ed5f458a1c669b7e01332cb294ae4cbdeb (patch) | |
tree | c2b4570421724d0f1f9b22228287ea4c64f5cb11 /distrib/amd64/iso/Makefile | |
parent | f4409ec46343690f2d8488e54a5731d75ae3a918 (diff) |
For SHA256 hashes to be ready to go onto the install media, we must
build the sets before we build the media. While there we can get rid
of DESTDIR/snapshot too, and simply install straight into RELEASEDIR.
(This also ends up saving an astounding amount of traffic/latency in a nfs
environment)
Diffstat (limited to 'distrib/amd64/iso/Makefile')
-rw-r--r-- | distrib/amd64/iso/Makefile | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/distrib/amd64/iso/Makefile b/distrib/amd64/iso/Makefile index 9502ee8c41c..1b8350b6f59 100644 --- a/distrib/amd64/iso/Makefile +++ b/distrib/amd64/iso/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.4 2008/08/25 17:18:55 deraadt Exp $ +# $OpenBSD: Makefile,v 1.5 2009/04/17 03:58:54 deraadt Exp $ TOP= ${.CURDIR}/.. @@ -41,6 +41,11 @@ ${CDROM}: ${BASE} ${XBASE} install: cp ${CDROM} ${RELDIR}/ + # update the SHA256 file + grep -v ${CDROM} ${RELDIR}/SHA256 > ${RELDIR}/SHA256.new + sum -a sha256 ${CDROM} >> ${RELDIR}/SHA256.new + sort ${RELDIR}/SHA256.new > ${RELDIR}/SHA256 + rm ${RELDIR}/SHA256.new clean cleandir: /bin/rm -f ${CDROM} |