view move-if-change @ 104827:dc1e0326ee77

2009-09-03 Carsten Dominik <dominik@u016822.science.uva.nl> * org-agenda.el (org-agenda-dim-blocked-tasks): Make sure we are referencing the start of the line.
author Carsten Dominik <dominik@science.uva.nl>
date Thu, 03 Sep 2009 07:19:15 +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