view move-if-change @ 1458:60c5c2f74650

[xemacs-hg @ 2003-05-05 04:52:40 by youngs] 2003-05-05 Steve Youngs <youngs@xemacs.org> * lwlib-Xm.c (xm_update_one_widget): Only call `xm_update_progress' if `LWLIB_WIDGETS_MOTIF' is defined.
author youngs
date Mon, 05 May 2003 04:52:40 +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