view move-if-change @ 948:665fe33715d6

[xemacs-hg @ 2002-08-02 15:01:04 by scop] 2002-08-02 Ville Skyttä <ville.skytta@xemacs.org> * font-lock.el: Some faces and doc typo fixes from GNU Emacs. (font-lock-doc-face): New alias to font-lock-doc-string-face. (font-lock-builtin-face): New. (font-lock-constant-face): New. (font-lock-face-list): Add builtin and constant faces. Message-Id: <1028291844.2388.51.camel@bobcat.ods.org>
author scop
date Fri, 02 Aug 2002 15:01:10 +0000
parents 376386a54a3c
children
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