view move-if-change @ 111120:8764fdce10f5

Make all 3 copies of x-select-enable-clipboard have the same doc. * lisp/term/pc-win.el (x-select-enable-clipboard): * lisp/term/x-win.el (x-select-enable-clipboard): * lisp/w32-vars.el (x-select-enable-clipboard): Make doc-strings identical.
author Glenn Morris <rgm@gnu.org>
date Sat, 23 Oct 2010 13:40:46 -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