view move-if-change @ 100271:ba4358a5f1c6

2008-12-02 Carsten Dominik <carsten.dominik@gmail.com> * org.texi (Using the mapping API): Fix bug in mapping example. (Publishing options): Make the list of properties complete again, in correspondence to the variable `org-export-plist-vars'. (Property searches): Document new special values for time comparisons. (Tag inheritance): Refine the description of tag inheritance. (Project alist): Add info about the publishing sequence of components. (Effort estimates): Document the new relativer timer.
author Carsten Dominik <dominik@science.uva.nl>
date Sun, 07 Dec 2008 18:49:38 +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