view move-if-change @ 41463:078a3890c752

(Fload): Detect recursive load error for more than 3 nestings of the same file. (Vrecursive_load_depth_limit): Variable deleted. (syms_of_lread) <recursive-load-depth-limit>: Variable deleted.
author Richard M. Stallman <rms@gnu.org>
date Sun, 25 Nov 2001 02:13:13 +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