view move-if-change @ 5731:ec3712ffd0e6

Update config.guess, config.sub, and install-sh to their latest versions. This is primarily to gain preliminary support for the new aarch64 architecture. See xemacs-patches message <CAHCOHQmsxN7ZDaUs=onRPrzbj9S6BnMHHwwEg8HUfXyEVwySGw@mail.gmail.com>.
author Jerry James <james@xemacs.org>
date Fri, 15 Mar 2013 13:52:53 -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