view move-if-change @ 5372:6c3a695f54f5

Update png_instantiate () to work with more recent versions of libpng. 2011-03-14 Aidan Kehoe <kehoea@parhasard.net> * glyphs-eimage.c (png_instantiate): Update the PNG handling code to work with versions of the library where the png_info structure is no longer visible. Thank you for the report, Robert Delius Royar.
author Aidan Kehoe <kehoea@parhasard.net>
date Mon, 14 Mar 2011 21:04:45 +0000
parents 376386a54a3c
children
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