view move-if-change @ 5499:4b5b7dcc19d6

Fix for issue745, linking on cygwin 1.7. Use /usr/lib/w32api first.
author Jeff Sparkes <jsparkes@gmail.com>
date Mon, 02 May 2011 08:51:19 -0400
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