view move-if-change @ 58475:647b2f6dac36

(math-nrf-n, math-nrf-nf, math-nrf-nfm1): New variables. (math-nth-root-float, math-nth-root-float-iter): Replace variables n, nf and nfm1 by declared variables. (math-nri-n): New variable. (math-nth-root-int, math-nth-root-int-iter): Replace variable n by declared variable. (calcFunc-log): Removed misplaced condition.
author Jay Belanger <jay.p.belanger@gmail.com>
date Wed, 24 Nov 2004 18:01:37 +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