view move-if-change @ 73554:d092f1092ef0

* emacs-lisp-intro.texi: Many changes since it turned out that many `simple' functions were rewritten. Changes to the text regarding zap-to-char, mark-whole-buffer, append-to-buffer, copy-to-buffer, beginning-of-buffer, what-line, and possibly others. (I have not reviewed all yet.) This instance does build for Info and TeX.
author Robert J. Chassell <bob@rattlesnake.com>
date Mon, 30 Oct 2006 22:15:21 +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