view move-if-change @ 70138:a11cae0b1787

2006-04-20 Reiner Steib <Reiner.Steib@gmx.de> * gnus.texi (Spam Statistics Package): Fix typo in @pxref. (Splitting mail using spam-stat): Fix @xref. 2006-04-20 Chong Yidong <cyd@stupidchicken.com> * gnus.texi (Spam Package): Major revision of the text. Previouly this node was "Filtering Spam Using The Spam ELisp Package".
author Reiner Steib <Reiner.Steib@gmx.de>
date Thu, 20 Apr 2006 20:14:50 +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