view move-if-change @ 104015:65ac865116fc

* fileio.c: Revert 2009-07-16 changes. (Vauto_save_include_big_deletions): New variable. (Fdo_auto_save): Disable auto-save only if auto-save-include-big-deletions is nil.
author Chong Yidong <cyd@stupidchicken.com>
date Tue, 21 Jul 2009 23:34:02 +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