view move-if-change @ 67581:05d48e1da3ad

* xfns.c (compute_tip_xy): Handle negative dx and dy. * w32fns.c (compute_tip_xy): Ditto * macfns.c (compute_tip_xy): Ditto
author Jan Djärv <jan.h.d@swipnet.se>
date Wed, 14 Dec 2005 20:58:33 +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