view move-if-change @ 103384:1a60127fa212

(Viewing Info files outside of Emacs): Xinfo is no more. (Help installing Emacs): Remove reference to deleted X11 node. (Associating modes with files): Interpreter-mode-alist is no longer subservient to auto-mode-alist. (Installing Emacs): Change future Emacs version. (Linking with -lX11 fails): Remove old section. (Packages that do not come with Emacs): Update ELL location. Emacs Lisp archive is dead. (Emacs for Windows): Remove reference to old CE port. (Emacs for OS/2, Emacs for Atari ST, Emacs for the Amiga ): Remove old ports. (Emacs for GNUstep): Rename from "Emacs for NeXTSTEP" and update. (Removing flashing messages): Remove section about non-existent Gnus option.
author Glenn Morris <rgm@gnu.org>
date Fri, 12 Jun 2009 02:47:25 +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