view move-if-change @ 55797:954cec4917f6

(Info-desktop-buffer-misc-data): Don't save information about virtual files. (Info-restore-desktop-buffer): Restore Info buffers in prepared buffers with names obtained from the desktop file instead of the default *info* buffer.
author Juri Linkov <juri@jurta.org>
date Fri, 28 May 2004 20:56: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