view move-if-change @ 43087:0a5935fb4e9e
(rmail): Use find-buffer-visiting instead of
get-file-buffer to check for rmail buffer existence.
author |
Eli Zaretskii <eliz@gnu.org> |
date |
Sun, 03 Feb 2002 11:34:29 +0000 (2002-02-03) |
parents |
354e0c45cedf |
children |
14a97ab281d5 |
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