view move-if-change @ 3312:b145b32294ff

[xemacs-hg @ 2006-03-28 15:55:48 by james] Update obsolete autoconf macros. See xemacs-patches discussion starting with message <m3r74nvb3t.fsf@jerrypc.cs.usu.edu>.
author james
date Tue, 28 Mar 2006 15:55:52 +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