view move-if-change @ 89205:b1be7f87c9d9
(side-effect-free-fns): Add
string-make-unibyte string-make-multibyte string-to-multibyte
string-as-multibyte string-as-unibyte.
author |
Dave Love <fx@gnu.org> |
date |
Mon, 14 Oct 2002 17:29:54 +0000 (2002-10-14) |
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