view move-if-change @ 33369:a92924d06d5b

2000-11-10 Dave Love <fx@gnu.org> * pop3.el (pop3-version): Deleted. (pop3-make-date): New function, avoiding message-make-date. (pop3-munge-message-separator): Use it. 2000-11-10 ShengHuo ZHU <zsh@cs.rochester.edu> * pop3.el (pop3-munge-message-separator): A message may have an empty body.
author Dave Love <fx@gnu.org>
date Fri, 10 Nov 2000 11:56:06 +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