view move-if-change @ 885:9a25b5ae3a51

[xemacs-hg @ 2002-06-27 22:50:25 by youngs] 2002-06-28 Steve Youngs <youngs@xemacs.org> * inline.c: Include device-impl.h, extents-impl.h, frame-impl.h, and objects-impl.h to pick up some error_check_* functions. Remove console.h, extents.h, frame.h and objects.h because the *-impl.h files include them.
author youngs
date Thu, 27 Jun 2002 22:50:29 +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