view move-if-change @ 96409:5ef5228e0e13

(mh-invisible-header-fields-internal): Add invisible header fields for X-Hz (mail from Hertz), X-Proofpoint (Proofpoint antivirus/anti-spam) and X-RIM (Research In Motion).
author Jeffrey C Honig <jch@bsdi.com>
date Sun, 29 Jun 2008 03:06:12 +0000
parents 354e0c45cedf
children 14a97ab281d5
line wrap: on
line source

#!/bin/sh
if
test -r $2
then
if
cmp $1 $2 > /dev/null
then
echo $2 is unchanged
rm -f $1
else
mv -f $1 $2
fi
else
mv -f $1 $2
fi