view move-if-change @ 1428:10738b72057d

[xemacs-hg @ 2003-04-24 05:29:11 by youngs] 2003-04-24 Steve Youngs <youngs@xemacs.org> * font-lock.el (font-lock-match-java-declarations): Move save-restriction, narrow-to-region to beginning of function to avoid going beyond the limit and causing an infloop. From Jin Choi <jsc@orangeimagineering.com>. 2003-04-24 Vasily Korytov <deskpot@myrealbox.com> * lisp-mode.el (emacs-lisp-mode-hook, lisp-mode-hook, lisp-interaction-mode-hook): Add the docstrings.
author youngs
date Thu, 24 Apr 2003 05:29:12 +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