view move-if-change @ 69197:9f9cc4dd5f76

Re-instate comments about developing for speedbar [this is what info and gdb-ui use even if better methods exist now].
author Nick Roberts <nickrob@snap.net.nz>
date Tue, 28 Feb 2006 02:49:16 +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