view move-if-change @ 110395:5be11972ce6a

Silence byte-compiler * lisp/gnus/nnrss.el (nnrss-retrieve-headers, nnrss-request-list-newsgroups) (nnrss-retrieve-groups): * lisp/gnus/pop3.el (pop3-open-server, pop3-read-response, pop3-list) (pop3-retr, pop3-quit): Use with-current-buffer.
author Stefan Monnier <monnier@iro.umontreal.ca>
date Fri, 17 Sep 2010 16:22:06 +0200
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