view move-if-change @ 2837:c1ec282bb160

[xemacs-hg @ 2005-06-29 09:47:33 by crestani] 2005-06-28 Marcus Crestani <crestani@xemacs.org> * console-x.c (x_perhaps_init_unseen_key_defaults): Use build_intstring to avoid type error. * event-Xt.c (x_keysym_to_emacs_keysym): Add cast to avoid type error.
author crestani
date Wed, 29 Jun 2005 09:47:35 +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