view move-if-change @ 104811:a57e4459f97a

2009-09-02 Carsten Dominik <carsten.dominik@gmail.com> * org.texi (Effort estimates): Document new effort setting commands. (Agenda commands): Document the new keys fro agenda time motion. Document entry text mode. Improve documentation of the keys to include inactive time stamps into the agenda view. (Feedback): Document the new bug report command. (Structure editing): Added an index entry for the sorting of subtrees.
author Carsten Dominik <dominik@science.uva.nl>
date Wed, 02 Sep 2009 13:05: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