view move-if-change @ 2504:e17beacca645

[xemacs-hg @ 2005-01-26 04:47:13 by ben] Redo mouse activation mouse.el: Redo mouse-track activation to separate out a "conservative" activation that is only triggered by button2 or button1 double-click and a regular activation also triggered by button1.
author ben
date Wed, 26 Jan 2005 04:47:14 +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