#!/bin/sh
# for use after mirror ftp, to update times if lengths and checksums agree
PATH=/usr/ehg/lib/netlib:$PATH
expect=/tmp/cte$$
files=/tmp/ctf$$
have=/tmp/cth$$
cd /netlib
sed -n 's/^get //p' > $expect
sed 's/ .*//' $expect > $files
crc < $files > $have
masterslave $expect $have | g '^time' | mirror x x x x
rm $expect $files $have
