view move-if-change @ 45049:11c11cb2b8a8

(c-beginning-of-decl-1): Better way to handle protection labels, one which doesn't get confused by inherit colons. (c-end-of-decl-1): Don't treat functions that have "class" or "struct" in the return type as classes or structs.
author Martin Stjernholm <mast@lysator.liu.se>
date Tue, 30 Apr 2002 23:00:54 +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