view move-if-change @ 83523:6ce7108f7eef

Don't load terminit files repeatedly. Also, don't call terminit functions more than once per terminal. * lisp/faces.el (tty-find-type): New function. (tty-run-terminal-initialization): Load files just once per Emacs session, and call terminit functions just once per terminal. git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-563
author Karoly Lorentey <lorentey@elte.hu>
date Sat, 20 May 2006 15:28:05 +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