view move-if-change @ 518:e6e7cbdea419

[xemacs-hg @ 2001-05-08 05:23:51 by martinb] s/bsd386.h: Use NOT_C_CODE instead of emacs to protect Makefiles
author martinb
date Tue, 08 May 2001 05:23: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