view move-if-change @ 1696:7032283c28db

[xemacs-hg @ 2003-09-19 15:56:52 by youngs] 2003-09-20 Steve Youngs <youngs@xemacs.org> * configure: Re-generate after Martin's configure.in patch. 2003-09-20 Martin Buchholz <martin@xemacs.org> * configure.in: XEmacs failed to build on Solaris9. Solaris9 comes with /usr/demo/SOUND, but no headers or libraries therein.
author youngs
date Fri, 19 Sep 2003 15:56:54 +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