view move-if-change @ 60029:210af0ad3d35

Revision: miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-96 Move Gnus images into etc/images 2005-02-13 Reiner Steib <Reiner.Steib@gmx.de> * lisp/gnus/gnus.el (gnus-group-startup-message): Search for gnus images in etc/images/gnus. * lisp/gnus/mm-util.el (mm-find-charset-region): Likewise. * lisp/gnus/smiley.el (smiley-data-directory): Search for smilies in etc/images/smilies.
author Miles Bader <miles@gnu.org>
date Sun, 13 Feb 2005 08:47:45 +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