view move-if-change @ 65250:8105f38368d5

(PIX_MASK_DRAW, PIX_MASK_RETAIN): Remove argument. All uses changed. [MAC_OS] (XPutPixel, XGetPixel): Add efficient versions for common cases. (x_create_x_image_and_pixmap) [MAC_OS]: Don't call x_destroy_x_image. [MAC_OS] (find_image_fsspec) [!MAC_OSX]: Don't use FSRef. Use posix_pathname_to_fsspec. [MAC_OS] (xpm_load_image): Fill in background_transparent field while we have mask.
author YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
date Wed, 31 Aug 2005 08:35:28 +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