view move-if-change @ 44541:1910e7c74f9f

* pop3.el (pop3-munge-message-separator): Work if no date. Trivial patch from Marius Vollmer <mvo@zagadka.ping.de>. * pop3.el (pop3-munge-message-separator): Only use valid date. Trivial patch from Michael Welsh Duggan <md5i@cs.cmu.edu>.
author ShengHuo ZHU <zsh@cs.rochester.edu>
date Fri, 12 Apr 2002 11:32:23 +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