view move-if-change @ 109532:45a355dbe7fc

Accept x-pkcs7-signature MIME type as signature. 2010-07-24 David Engster <dengste@eml.cc> * mml-smime.el (mml-smime-epg-verify): Also accept the older x-pkcs7-signature MIME type as signature (RFC 2311, C.1).
author Katsumi Yamaoka <katsumi@flagship2>
date Sun, 25 Jul 2010 10:29:49 +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