view move-if-change @ 5741:d11efddf3617

Fix texinfo constructs that are rejected by texinfo 5.x. See xemacs-patches message <CAHCOHQngK6wyLhBtP9i5ngMyGTV9GFh3qU9tq8XebYTdVOYU2w@mail.gmail.com>.
author Jerry James <james@xemacs.org>
date Fri, 21 Jun 2013 08:44:33 -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