view move-if-change @ 5151:641d0cdd1d00

fix compilation problems identified by Robert Delius Royar -------------------- ChangeLog entries follow: -------------------- src/ChangeLog addition: 2010-03-16 Ben Wing <ben@xemacs.org> * alloc.c (make_lcrecord_list): * alloc.c (alloc_managed_lcrecord): Fix compilation problems identified by Robert Delius Royar.
author Ben Wing <ben@xemacs.org>
date Tue, 16 Mar 2010 23:09:34 -0500
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