view move-if-change @ 70916:dfbe62ceddcf

* tumme.el (tumme-display-image): Changed documentation string slightly. (tumme-dired-display-image): Added call to `display-buffer'. * dired.el (dired-mode-map): `tumme-display-dired-image' was renamed in tumme.el, but there was still a key binding to it here. Changed the binding to the new name.
author Mathias Dahl <mathias.dahl@gmail.com>
date Thu, 25 May 2006 12:21:41 +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