view move-if-change @ 2844:eae9afc261a9

[xemacs-hg @ 2005-07-04 13:11:25 by crestani] 2005-06-29 Marcus Crestani <crestani@xemacs.org> Fix C++ build for unexec. * unexelf.c: Adjust fatal and unexec to the declarations in lisp.h. * unexelf.c (unexec): Remove unneeded arguments from fatal calls.
author crestani
date Mon, 04 Jul 2005 13:11:27 +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