view move-if-change @ 70587:5bf70421e7ea

(gdb-reset): Update speedbar if necessary. (gdb-var-evaluate-expression-handler, gdb-var-update-handler): Use a token for pending-triggers to ensure gdb-var-update gets called once per user input again for pre-GDB 6.4. (gdb-var-delete): Match on more complex expressions. (gdb-var-list-children-handler, gdb-var-create-handler): Use a token for consistency.
author Nick Roberts <nickrob@snap.net.nz>
date Thu, 11 May 2006 10:08:03 +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