view move-if-change @ 661:78df880cb9f8

[xemacs-hg @ 2001-09-16 10:09:54 by adrian] [PATCH APPROVE COMMIT RECOMMEND 21.4.5 21.1.15] xemacs-21.5: linklint-and-google-guided link mending, fix for texi2html <n13vqwfs.fsf@ecf.teradyne.com>
author adrian
date Sun, 16 Sep 2001 10:10:00 +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