view move-if-change @ 46556:71e205b50a3e

(may_use_scalable_font_p): Argument now points to const. (x_face_list_fonts, x_update_menu_appearance): (hash_string_case_insensitive): Treat Lisp string contents as const.
author Ken Raeburn <raeburn@raeburn.org>
date Fri, 19 Jul 2002 14:27:28 +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