view move-if-change @ 5744:9c17f7be0b92

Require makeinfo 4.12 or later to build the info files. See xemacs-beta message <CAD3FetiVVt_Lw8D6PCeA=_kwFbp8L0h9Y0LSA5QYL5BxxF=fWw@mail.gmail.com> for the original bug report, and xemacs-patches message <CAHCOHQm63J403HSyakhpxoO5jTO_OZ5-0rkgT36xbnTs0G3H8Q@mail.gmail.com>.
author Jerry James <james@xemacs.org>
date Tue, 25 Jun 2013 15:31:58 -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