view move-if-change @ 111979:b8b55da43e95

Handle invisible cursor (bg same as cursor color) for Nextstep. * nsterm.m (ns_draw_window_cursor): If the cursor color is the same as the background, use the face forground as cursor.
author Jan D. <jan.h.d@swipnet.se>
date Thu, 16 Dec 2010 20:37:13 +0100
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