view move-if-change @ 101291:600214d1718d

* xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts): Check return value of font_spec_from_name. (Fx_list_fonts): Doc fix. * font.c (font_spec_from_name): Return Qnil if font name could not be parsed. (font_parse_name): Treat a `?' character as part of an XLFD.
author Chong Yidong <cyd@stupidchicken.com>
date Mon, 19 Jan 2009 16:40:30 +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