view move-if-change @ 81097:b4da44959c38

Merge from emacs--rel--22 Patches applied: * emacs--rel--22 (patch 29-32) - Update from CVS 2007-05-29 Martin Rudalics <rudalics@gmx.at> * lisp/textmodes/table.el (table--point-entered-cell-function) (table--point-left-cell-function): Bind `inhibit-point-motion-hooks' to t. 2007-05-28 Chong Yidong <cyd@stupidchicken.com> * lisp/textmodes/sgml-mode.el (sgml-point-entered): Use condition-case. 2007-05-27 Tetsurou Okazaki <okazaki@be.to> (tiny change) * lisp/log-edit.el (log-edit-changelog-paragraph): Return point-max as the end of the ChangeLog paragraph when it ends without a line termination. 2007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> * src/xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t around current_column call. Revision: emacs@sv.gnu.org/emacs--devo--0--patch-778
author Miles Bader <miles@gnu.org>
date Tue, 29 May 2007 23:19:43 +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