view move-if-change @ 649:37441ddea94d

[xemacs-hg @ 2001-08-22 21:03:16 by adrian] [PATCH] xemacs-21.5: Plug build-report a bit in etc/BETA <lmkdm5z9.fsf@ecf.teradyne.com>
author adrian
date Wed, 22 Aug 2001 21:03:16 +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