view move-if-change @ 4352:d2f4dd8611d9

Factor out lists of operators specially treated by 'make-autoload'. General idea approved by Mike Sperber, and tested in 21.4 by building JDE.
author Stephen J. Turnbull <stephen@xemacs.org>
date Sat, 22 Dec 2007 15:57:21 -0800
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