Commit Graph

16 Commits

Author SHA1 Message Date
snj f2a7edf211 Only generate SHA512 and MD5 checksums for releases. 2009-09-19 07:09:53 +00:00
apb c32228d46e When printing messages to stderr, always use
echo >&2 "${prog}: ..."

Approved by christos
2006-01-08 10:10:03 +00:00
apb 0bee96eab7 Ensure that (almost) all shell variables in distrib/sets/* scripts are
used with curly braces and quotes, as in "${var}".

Also ensure that command substitution is quoted, as in "$(command)", and
convert `command` to $(command).

Reviewed by agc
2006-01-03 18:31:09 +00:00
apb 3a0b541193 Add shell variables defined in sets.subr for almost all commands used
by scripts in distrib/sets/*.  This is intended to be useful when cross
building.  Only trivial commands like echo, cat, and rm are excluded
from this treatment.

While I am here, make ${MTREE} and ${DB} follow the pattern used by most
other such variables.

Reviewed by agc.
2006-01-03 16:40:16 +00:00
apb 26d8593b50 Move default values for several shell variables into sets.subr.
Reviewed by agc
2006-01-03 15:42:42 +00:00
jmc d5bf52b805 Set default vars so blank and unset both end up w. a reasonable default 2005-10-21 02:41:14 +00:00
jmc 86c0dfe571 Add option to append to existing checksum files 2005-10-07 17:21:36 +00:00
jmc b62b30c668 Correct comments to line up with SHA512 generation now 2005-10-06 02:12:49 +00:00
elad 1a75cd7fa5 - cksum -m -> cksum -a md5.
- Generate SHA512 checksums too.

Is there any reason to still generate MD5 checksums?
2005-09-13 16:38:01 +00:00
lukem 32037997ae clean up to operate similar to other scripts in this directory, including:
* separate usage function
* use getopts (replacing '-all' with '-a')
2004-04-20 05:37:15 +00:00
lukem 245a0c292b improve description of -t 2003-01-03 15:26:32 +00:00
lukem 40b2b53564 Also sum symlinks (as well as files) which match, as we often replace
common sets with a symlink to a shared copy, and this change ensures
that all the appropriate entries have sums generated.
2002-09-15 09:47:42 +00:00
lukem c64952588e set MAKE="${MAKE:-make} -j 1" to prevent problems where the output
of make -j N>1 would result in junk in various shell variables
2002-07-23 09:02:45 +00:00
bjh21 fdfbb66f3a Use ${CKSUM} rather than cksum if the former's defined. 2002-03-31 15:17:58 +00:00
toddpw eb6225f8f4 Enhance script. Add -all option and improve intelligence about which files to
sum (and whether to do sums at all!). Describe script in comments at the top.
2000-08-20 08:29:59 +00:00
is 805851f4c7 Provide a script to compute the distribution set checksums.
Make the Makefile use it, instead of calling cksum manually.
1999-07-22 20:10:16 +00:00