view move-if-change @ 5792:8ef8d5e7c920

Fix broken texinfo references. See xemacs-beta message with ID <1395982782.4313.8.camel@linux1> and xemacs-patches message with ID <CAHCOHQnBtTTszzQ7u0S_F9rBzNKncTzi=b+ZY+ruBeQJ=V3=2A@mail.gmail.com>.
author Jerry James <james@xemacs.org>
date Fri, 28 Mar 2014 12:48:12 -0600
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