view move-if-change @ 106678:3a8fd7717b30

This changeset reverts GDB Graphical Interface to use annotations. It incorporates features added (and never released) on the EMACS_23_1_RC branch. Namely reverse debugging and the display of STL collections as watch expressions. The long term aim is to move to GDB/MI, so these changes will be re-instated at some time in the future. At the moment, however, there are issues with gdb-mi.el that have not yet
author Nick Roberts <nickrob@snap.net.nz>
date Tue, 29 Dec 2009 20:15:34 +1300
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