view move-if-change @ 109448:334eb7871775

Change x-select-enable-primary to nil. * lisp/mouse.el (mouse-drag-copy-region): * lisp/simple.el (select-active-regions): Likewise. * lisp/term/x-win.el (x-select-enable-primary): Change default to nil. (x-select-enable-clipboard): Add :version keyword.
author Chong Yidong <cyd@stupidchicken.com>
date Fri, 16 Jul 2010 22:49:48 -0400
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