view move-if-change @ 758:760db937b9ee

[xemacs-hg @ 2002-02-22 17:22:00 by michaels] 2001-09-04 Daiki Ueno <ueno@unixuser.org> * insdel.c (prepare_to_modify_buffer): Don't call the function ask-user-about-supersession-threat when CLASH_DETECTION is set.
author michaels
date Fri, 22 Feb 2002 17:22:02 +0000
parents 376386a54a3c
children
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