view move-if-change @ 103840:a9bb4a9d0ebd

xfns.c (Fx_select_font): Remember last font selected in x_last_font_name and use that the next time. Also try the frame parameter font-parameter as default to the font dialog.
author Jan Djärv <jan.h.d@swipnet.se>
date Fri, 10 Jul 2009 17:07:36 +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