mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-18 10:35:55 +00:00
6914768e93
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.
23 lines
935 B
Bash
23 lines
935 B
Bash
#!/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
|