view move-if-change @ 5193:41ac827cb71b

fix cygwin compile, fix warning and style in elhash.c -------------------- ChangeLog entries follow: -------------------- src/ChangeLog addition: 2010-04-06 Ben Wing <ben@xemacs.org> * elhash.c (Feq_hash): Cast to EMACS_INT to fix warning. * elhash.c (internal_hash): * elhash.c (Feql_hash): Fix spacing before parens. * general-slots.h: * xemacs.def.in.in: Export Qfixnump to fix eldap.c link error.
author Ben Wing <ben@xemacs.org>
date Tue, 06 Apr 2010 23:29:35 -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