view move-if-change @ 553:5c6dc7d576ad

[xemacs-hg @ 2001-05-21 08:02:46 by yoshiki] Paul's patch "Patch for sound under latest Cygwin", <yz1ae4lz76u.fsf@milhouse.cs.cornell.edu> * configure.in: Reverse the order of Windows and Linux sound tests so that Cygwin will find Windows first.
author yoshiki
date Mon, 21 May 2001 08:02:55 +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