view move-if-change @ 2835:ae83ac9c29b3

[xemacs-hg @ 2005-06-28 12:02:39 by crestani] lib-src/ChangeLog addition: 2005-06-28 Marcus Crestani <crestani@xemacs.org> * .cvsignore: Add insert-data-in-exec. src/ChangeLog addition: 2005-06-28 Marcus Crestani <crestani@xemacs.org> * .cvsignore: Add dump-size, xemacs.def, xemacs.def.in.
author crestani
date Tue, 28 Jun 2005 12:02:42 +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