view move-if-change @ 104399:1aa0b1f2d2d1

* nsterm.m (ns_get_color): Update documentation properly for last change, and clean up loose ends in the code left by it. Fix longstanding bug with 16-bit hex parsing, and add support for yet another X11 format (rgb:r/g/b) for compatibility. * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of timer_check() to avoid crash on Leopard/PPC. Bug #2154.
author Adrian Robert <Adrian.B.Robert@gmail.com>
date Fri, 21 Aug 2009 19:33:56 +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