view move-if-change @ 3394:d8309294c81c

[xemacs-hg @ 2006-05-11 14:57:04 by james] Always pass a device as the 4th argument to x-font-menu-font-data-xft. See xemacs-patches message with ID <m3u07xsyly.fsf@jerrypc.cs.usu.edu>.
author james
date Thu, 11 May 2006 14:57:05 +0000 (2006-05-11)
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