mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-03 08:22:44 +00:00
Yow! Ok, distributions should now be fully auto-checksumming, provided
that Poul builds the rest of the dists properly. I'll run this over the XFree86 dist, but the rest will be up to him. Check bindist rule for the single line to add - it's trivial.
This commit is contained in:
parent
41ec615889
commit
6914768e93
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=4559
@ -1,4 +1,4 @@
|
||||
# $Id: Makefile,v 1.46 1994/11/17 07:11:30 jkh Exp $
|
||||
# $Id: Makefile,v 1.47 1994/11/17 14:18:00 jkh Exp $
|
||||
#
|
||||
|
||||
# Evil floppies are, of course, 1.2MB floppies.
|
||||
@ -131,7 +131,7 @@ release20:
|
||||
tar cf - . | \
|
||||
${ZIPNSPLIT} ${RELEASEDIR}/tarballs/bindist/bin_tgz.)
|
||||
cp ${.CURDIR}/extract.sh ${RELEASEDIR}/tarballs/bindist
|
||||
( cd ${RELEASEDIR}/tarballs/bindist; cksum * > CKSUMS )
|
||||
( cd ${RELEASEDIR}/tarballs/bindist; ${.CURDIR}/mkchecksums.sh )
|
||||
( cd ${.CURDIR} ; \
|
||||
${MAKE} floppies )
|
||||
foo:
|
||||
|
@ -10,7 +10,7 @@
|
||||
# putting your name on top after doing something trivial like reindenting
|
||||
# it, just to make it look like you wrote it!).
|
||||
#
|
||||
# $Id: instdist.sh,v 1.2 1994/11/17 11:53:13 jkh Exp $
|
||||
# $Id: instdist.sh,v 1.3 1994/11/17 14:18:02 jkh Exp $
|
||||
|
||||
if [ "$_INSTINST_SH_LOADED_" = "yes" ]; then
|
||||
return 0
|
||||
@ -131,11 +131,20 @@ the files yourself.\n\n"; then return 1; fi
|
||||
|
||||
media_extract_dist()
|
||||
{
|
||||
if [ -f extract.sh ]; then
|
||||
message "Extracting distribution.. Please wait!"
|
||||
sh ./extract.sh < /dev/ttyv1 > /dev/ttyv1 2>&1
|
||||
if [ -f do_cksum.sh ]; then
|
||||
message "Verifying checksums for distribution. Please wait!"
|
||||
if sh ./do_cksum.sh; then
|
||||
if [ -f extract.sh ]; then
|
||||
message "Extracting distribution. Please wait!"
|
||||
sh ./extract.sh < /dev/ttyv1 > /dev/ttyv1 2>&1
|
||||
else
|
||||
error "No installation script found!"
|
||||
fi
|
||||
else
|
||||
error "Checksum error(s) found. Please check media!"
|
||||
fi
|
||||
else
|
||||
error "Improper distribution. No installation script found!"
|
||||
error "Improper distribution. No checksum script found!"
|
||||
fi
|
||||
}
|
||||
|
||||
|
22
release/mkchecksums.sh
Normal file
22
release/mkchecksums.sh
Normal file
@ -0,0 +1,22 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# mkchecksums.sh - generate interactive checksum-checking script.
|
||||
# Jordan Hubbard
|
||||
#
|
||||
# This script generates a cksum.sh script from a set of tarballs
|
||||
# and should not be run by anyone but the release coordinator (there
|
||||
# wouldn't be much point).
|
||||
#
|
||||
# Jordan
|
||||
# $Id$
|
||||
#
|
||||
|
||||
# First generate the CKSUMS file for the benefit of those who wish to
|
||||
# use it in some other way. If we find out that folks aren't even using
|
||||
# it, we should consider eliminating it at some point. The interactive
|
||||
# stuff makes it somewhat superfluous.
|
||||
cksum * > CKSUMS
|
||||
|
||||
# Now generate a script for actually verifying the checksums.
|
||||
awk 'BEGIN {print "rval=0"} { printf("if [ \"\`cksum %s%s%s\`\" != \"%s %s %s\" ]; then dialog --title Error --infobox \"Checksum error detected on %s!\" -1 -1; rval=1; fi\n", "\047", $3, "\047", $1, $2, $3, $3);} END {print "exit $rval"}' < CKSUMS > do_cksum.sh
|
||||
chmod +x do_cksum.sh
|
Loading…
Reference in New Issue
Block a user