view move-if-change @ 67309:ee8894ca3f64

(gdb-use-inferior-io-buffer, gdb-speedbar-auto-raise): Echo new state in minibuffer. (gdb-var-create-handler, gdb-assembler-custom): Use search-forward for plain strings. (gdb-frames-mode): Remove redundant call to font-lock-mode. (gdb-all-registers): Rename from toggle-gdb-all-registers. Create registers buffer if necessary. Echo new state in minibuffer. (gdb-registers-mode-map, gdb-registers-mode): Use gdb-all-registers.
author Nick Roberts <nickrob@snap.net.nz>
date Sun, 04 Dec 2005 09:12:07 +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