view move-if-change @ 106636:6c68929f170b

* emacs.texi (Top): Update node listing. * abbrevs.texi (Saving Abbrevs): Abbrev file should be in .emacs.d. * basic.texi (Moving Point): M-r is now move-to-window-line-top-bottom. * cmdargs.texi (Initial Options): * xresources.texi (Resources): Document inhibit-x-resources. * custom.texi (Specifying File Variables): Note that minor modes are enabled unconditionally. * display.texi (Scrolling): Briefly document the old recenter command, and document recenter-positions. * files.texi (Visiting): * buffers.texi (Buffers): Max buffer size is now 512 MB. * frames.texi (Cut/Paste Other App): Document save-interprogram-paste-before-kill. * killing.texi (Kill Options): New node.
author Chong Yidong <cyd@stupidchicken.com>
date Fri, 25 Dec 2009 20:00:32 +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