view move-if-change @ 110072:1a236d9dcc23

* lisp/gnus/gnus-html.el: Require pkgs that define macros used in this file. (gnus-article-mouse-face): Declare to silence byte-compiler. (gnus-html-curl-sentinel): Use with-current-buffer, inhibit-read-only, and process-get. (gnus-html-put-image): Use plist-get to avoid getf. (gnus-html-prefetch-images): Use with-current-buffer.
author Stefan Monnier <monnier@iro.umontreal.ca>
date Tue, 31 Aug 2010 21:47:35 +0200
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