view move-if-change @ 44367:c652288e6fb7

(solar-spring-or-summer-season): Deleted. (solar-northern-spring-or-summer-season): New variable. (solar-sunrise-and-sunset, solar-moment, solar-sunrise-sunset): Rewritten. (diary-sabbath-candles-minutes): New variable. (diary-sabbath-candles): Use it instead of fixed 18 minutes.
author Richard M. Stallman <rms@gnu.org>
date Wed, 03 Apr 2002 14:33:57 +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