view move-if-change @ 28470:93996c44b23a

* editfns.c (text_property_stickiness, Fmessage_or_box): Use NILP to test Lisp_Object boolean value. (Fformat): Use a temporary variable to avoid ENABLE_CHECKING problems reading from and changing the same lisp value in an XSETSTRING call.
author Ken Raeburn <raeburn@raeburn.org>
date Sun, 02 Apr 2000 02:31:07 +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