view move-if-change @ 69461:1527bb09ec30

Revision: emacs@sv.gnu.org/emacs--devo--0--patch-156 rcirc.el update from Ryan Yeske 2006-03-13 Ryan Yeske <rcyeske@gmail.com> * lisp/net/rcirc.el (rcirc) <defgroup>: Add link to manual. (rcirc-print): Mark the start of text at the end of the prompt. (rcirc-track-minor-mode): Add autoload cookie. (rcirc-update-activity-string): Add space to front of mode-line indicator.
author Miles Bader <miles@gnu.org>
date Mon, 13 Mar 2006 10:10:09 +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