view move-if-change @ 95142:f64ddc606a66

(syms-of-font) <font-encoding-alist>: (Ffontp, Ffont_make_gstring): Fix typos in docstrings. (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font, Ffont_otf_alternates): Doc fixes.
author Juanma Barranquero <lekktu@gmail.com>
date Tue, 20 May 2008 16:00:55 +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