view move-if-change @ 48982:3b64a4a4c235

* Makefile.in (macosx-bundle): Fixes to Mac OS X/Carbon port to allow building in a different directory than source. Uses some GNU Make extensions, but there is no other make on Mac OS X.
author Steven Tamm <steventamm@mac.com>
date Sat, 28 Dec 2002 18:35:52 +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