view move-if-change @ 102893:97aebffaf765

* text.texi (Yank Commands): Note that yank uses push-mark. (Filling): Clarify REGION argument of fill-paragraph. Document fill-forward-paragraph-function. (Special Properties): Remove "new in Emacs 22" declaration. (Clickable Text): Merge with Links and Mouse-1 node. * display.texi (Button Properties, Button Buffer Commands): Change xref to Clickable Text. * tips.texi (Key Binding Conventions): Change xref to Clickable Text. * elisp.texi (Top): Update node listing.
author Chong Yidong <cyd@stupidchicken.com>
date Thu, 09 Apr 2009 01:17:08 +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