view move-if-change @ 67322:505d047aa503

Remove unnecessary leading-star in docstrings. (mail-yank-ignored-headers): Use regexp-opt. (mail-mode-map): Move initialization into declaration. (mail-sent-via): Remove unused shadowed var `to-line'. (mail-mailer-swallows-blank-line): Use with-temp-buffer. (mail-bury, sendmail-send-it, mail-do-fcc): Use with-current-buffer. (mail-do-fcc): Use dolist and push. (mail-mode-fill-paragraph): Pass the arg to fill-region-as-paragraph.
author Stefan Monnier <monnier@iro.umontreal.ca>
date Mon, 05 Dec 2005 17:07:54 +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