view move-if-change @ 68686:f2477980fde3

(Compilation): Move and split kill-compilation para. Add para about multiple compilers. (Compilation Mode): Commands also available in grep mode and others. Mention C-u C-x ` more tutorially. Clarify C-x `. (Compilation Shell): Clarify. Put Bash example first. (Grep Searching): Minor cleanups; add @w. (Debuggers): Minor cleanups. (Starting GUD): Make GDB xgraphical mode issue clearer. (Debugger Operation): Lots of clarifications including GDB tooltip side-effect issue. (Commands of GUD): Clarify. (GUD Customization): Add bashdb-mode-hook. (GDB Graphical Interface): Rewrite for clarity. (GDB User Interface Layout): Rewrite for clarity. (Stack Buffer, Watch Expressions): Likewise. (Other GDB User Interface Buffers): Cleanups. (Lisp Libraries, External Lisp): Cleanup.
author Richard M. Stallman <rms@gnu.org>
date Tue, 07 Feb 2006 23:47:53 +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