view move-if-change @ 65130:d2334ecd8eae

Revision: miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-517 Merge from gnus--rel--5.10 Patches applied: * gnus--rel--5.10 (patch 105) - Update from CVS 2005-08-22 Karl Chen <quarl@cs.berkeley.edu> (tiny change) * lisp/gnus/gnus-art.el (gnus-treatment-function-alist): Move date-lapsed to the end of the date treatments. 2005-08-15 Simon Josefsson <jas@extundo.com> * lisp/gnus/pgg.el (url-insert-file-contents): Don't autoload it, Emacs has it in url-handlers.el and XEmacs in url.el. Reported by Luca Capello and Romain Francoise. (pgg-fetch-key-function): Removed, not used? (pgg-insert-url-with-w3): Require url, to get url-insert-file-contents regardless of where it is defined. 2005-08-08 Simon Josefsson <jas@extundo.com> * lisp/gnus/pgg.el: Autoload url-insert-file-contents instead of loading w3/url. (pgg-insert-url-with-w3): Don't load url here. 2005-08-19 Katsumi Yamaoka <yamaoka@jpl.org> * man/emacs-mime.texi (time-date): Fix description of safe-date-to-time. 2005-08-18 Katsumi Yamaoka <yamaoka@jpl.org> * man/emacs-mime.texi (Handles): Remove duplicate item. (Encoding Customization): Fix the default value for mm-coding-system-priorities. (Charset Translation): Emacs doesn't use mm-mime-mule-charset-alist. (Basic Functions): Fix reference. 2005-08-09 Katsumi Yamaoka <yamaoka@jpl.org> * man/gnus.texi (Charsets): Fj hierarchy uses iso-2022-jp.
author Miles Bader <miles@gnu.org>
date Fri, 26 Aug 2005 00:02:06 +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