view move-if-change @ 105118:e73a8ec76227

* frames.texi (Frame Commands): C-z is now bound to suspend-frame. * entering.texi (Exiting): C-z is now bound to suspend-frame. * custom.texi (Init Examples): Replace Rumseld with Cheny (Bug#3519). (Key Bindings): Reference Init Rebinding in introductory text. Shift some of the introduction to Keymaps node. (Keymaps): Simplify. (Local Keymaps): Simplify. Move binding example to Init Rebinding. (Minibuffer Maps): Remove mention of Mocklisp. (Init Rebinding): Move mode-local rebinding example here from Local Keymaps. (Modifier Keys): Clarify.
author Chong Yidong <cyd@stupidchicken.com>
date Sat, 19 Sep 2009 21:23:21 +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