Re: [PATCH] better header cache versioning
* On 2007.04.05, in <20070405193953.GD29536@xxxxxxxxxxxxxxxxx>,
* "Brendan Cully" <brendan@xxxxxxxxxx> wrote:
>
> Here's an alternative implementation in shell. It does expect to have
> either md5 or md5sum available, but that's a much lighter
> dependency. It's also a lot slower and stupider, but it seems to
> handle the needs of hcache for now.
Nice. Quick addition:
> +if which md5 > /dev/null
> +then
> + MD5=md5
> +elif which md5sum > /dev/null
> +then
> + MD5=md5sum
elif which openssl > /dev/null
then
MD5="openssl md5 -hex"
> +else
> + echo "ERROR: no MD5 tool found"
> + exit 1
> +fi
--
-D. dgc@xxxxxxxxxxxx NSIT University of Chicago