view move-if-change @ 84356:357b5ff720d4

(holiday-list, calendar-check-holidays, calendar-mark-holidays) (calendar-list-holidays, holiday-filter-visible-calendar): New names to clean up namespace. (filter-visible-calendar-holidays, list-calendar-holidays) (mark-calendar-holidays, check-calendar-holidays, list-holidays): Add compatibility aliases. (calendar-check-holidays, calendar-mark-holidays) (calendar-holiday-list, holiday-filter-visible-calendar): Use dolist. (holiday-sexp): Replace append with list. (holiday-filter-visible-calendar): Replace append with push.
author Stefan Monnier <monnier@iro.umontreal.ca>
date Fri, 07 Sep 2007 02:53:10 +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