view move-if-change @ 39561:0881eab13b7a

(byte-recompile-directory): Make sure the file is readable. (byte-compile-file): Don't compile if `no-byte-compile' is set. (byte-compile-defvar): Update to reflect the change in Fdefvar. (batch-byte-recompile-directory): Pass arg=0.
author Gerd Moellmann <gerd@gnu.org>
date Fri, 05 Oct 2001 09:29:51 +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