view move-if-change @ 71862:99b8c897395e

Fix typos. (Getting started with rcirc): New calling convention for M-x irc. Mention #rcirc. Removed channel tracking. (Configuration): Changed the names of all variables that got changed recently, eg. rcirc-server to rcirc-default-server. Added documentation for rcirc-authinfo, some background for Bitlbee, and rcirc-track-minor-mode. (Scrolling conservatively): Fixed the xref from Auto Scrolling to just Scrolling. (Reconnecting after you have lost the connection): Fixed example code to match code changes.
author Alex Schroeder <alex@gnu.org>
date Wed, 12 Jul 2006 19:05:50 +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