view move-if-change @ 108533:de6d3e5f8e8e

Synch with Gnus trunk. * gnus-art.el (gnus-bind-safe-url-regexp): Bind mm-w3m-safe-url-regexp to nil when we're in a mml-preview buffer and no group is selected. * mml1991.el (mml1991-mailcrypt-encrypt, mml1991-gpg-encrypt) * mml2015.el (mml2015-gpg-encrypt): Disable multibyte in buffers generated within the mm-with-unibyte-current-buffer macro.
author Katsumi Yamaoka <yamaoka@jpl.org>
date Thu, 13 May 2010 05:59:23 +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