view move-if-change @ 62102:b710f3bc2da3

(x_own_selection): Accept Lisp string as result of selection converter function. (x_clear_frame_selections): Don't call x-lost-selection-functions if Emacs is not owner of the selection. (Vmac_services_selection): Put variable and initialization in #ifdef MAC_OSX. (syms_of_macselect) [MAC_OSX]: Set default value of Vmac_services_selection to PRIMARY.
author YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
date Fri, 06 May 2005 08:03:08 +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