view move-if-change @ 70445:e8ca81ffe2d5

(Backup, Version Control, VC Concepts) (Types of Log File, Advanced C-x v v, Log Buffer, Old Versions) (Registering, VC Status, VC Undo, Multi-User Branching) (Comparing Files): Replace inforef to emacs-xtra by conditional xref's, depending on @iftex/@ifnottex. (Secondary VC Commands) [ifnottex]: Add menu entries for vc-xtra.texi subsections. (VC Undo) [ifnottex]: @include vc1-xtra.texi and @lowersections it. (Multi-User Branching) [ifnottex]: @include vc2-xtra.texi. (Reverting) [ifnottex]: @include arevert-xtra.texi. (Files) [ifnottex]: Add menu entry for Autorevert.
author Eli Zaretskii <eliz@gnu.org>
date Sat, 06 May 2006 12:52:00 +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