view move-if-change @ 66637:7567f8b4780e

(gdb-mouse-until): Make it work in the disassembly buffer too. (gdb-exited): Remove overlay arrows when execution has finished. (gdb-info-frames-custom, gdb-info-threads-custom) (gdb-info-registers-custom): Don't add inappropriate text properties if inferior is not active.
author Nick Roberts <nickrob@snap.net.nz>
date Wed, 02 Nov 2005 10:44: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