view move-if-change @ 48449:548ef238f24f

(xpm_format, pbm_format, png_format, jpeg_format, tiff_format) (gif_format, gs_format): Use IMAGE_ASCENT_VALUE. (xpm_image_p, pbm_image_p, png_image_p, jpeg_image_p) (tiff_image_p, gif_image_p, gs_image_p): Don't check ascent.
author Jason Rumney <jasonr@gnu.org>
date Mon, 18 Nov 2002 23:05:38 +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