view move-if-change @ 82015:0795e1e56274

(math-emacs-precision, math-largest-emacs-expt) (math-smallest-emacs-expt): New variables. (math-use-emacs-fn): New function. (math-exp-raw): Evaluate with `math-use-emacs-fn', when appropriate.
author Jay Belanger <jay.p.belanger@gmail.com>
date Sun, 22 Jul 2007 03:33:02 +0000
parents 354e0c45cedf
children 14a97ab281d5
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