view move-if-change @ 93636:f5d39ae0db5b

(calendar-julian-to-absolute): Rename calendar-absolute-from-julian. Update callers, keep old name as alias. (calendar-julian-print-date): Rename calendar-print-julian-date. Update callers, keep old name as alias. (calendar-julian-goto-date): Rename calendar-goto-julian-date. Update callers, keep old name as alias. (calendar-astro-to-absolute): Rename calendar-absolute-from-astro. Update callers, keep old name as alias. (calendar-astro-print-day-number): Rename calendar-print-astro-day-number. Update callers, keep old name as alias. (calendar-astro-goto-day-number): Rename calendar-goto-astro-day-number. Update callers, keep old name as alias.
author Glenn Morris <rgm@gnu.org>
date Fri, 04 Apr 2008 07:04:58 +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