view move-if-change @ 75637:3c400628967a

* emacs-lisp/easy-mmode.el (define-globalized-minor-mode): Rename from define-global-minor-mode. * progmodes/cwarn.el (global-cwarn-mode): * emacs-lisp/autoload.el (make-autoload): * hi-lock.el (global-hi-lock-mode): * font-core.el (global-font-lock-mode): All callers changed.
author Chong Yidong <cyd@stupidchicken.com>
date Sat, 03 Feb 2007 17:24:01 +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