view move-if-change @ 111134:a3c68a313b81

Reduce duplicate definitions of x-select-enable-clipboard from 3 to 2. * lisp/w32-vars.el (x-select-enable-clipboard): * lisp/term/x-win.el (x-select-enable-clipboard): Move to common-win. * lisp/term/common-win.el (x-select-enable-clipboard): Move here.
author Glenn Morris <rgm@gnu.org>
date Sat, 23 Oct 2010 18:57:21 -0700
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