view move-if-change @ 63280:69ae2aff114c

Fixes for changes of 2005-06-09. (thumbs-thumbsdir): Force `thumbs-thumbsdir' to be interpretable as a directory. (thumbs-thumbname): Remove directory separator from format string; `thumbs-thumbsdir' now returns a valid directory name. (thumbs-temp-dir): New defsubst. (thumbs-temp-file, thumbs-resize-image, thumbs-modify-image): Use it.
author Juanma Barranquero <lekktu@gmail.com>
date Fri, 10 Jun 2005 14:59:59 +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