view move-if-change @ 111313:1d510dd4f336

gnus-sum.el (gnus-print-buffer): Rewrite to use with-temp-buffer. gnus-sum.el (gnus-print-buffer): Just print the buffer as is. gnus-cite.el (gnus-article-foldable-buffer): Protect against degenerate articles.
author Katsumi Yamaoka <yamaoka@jpl.org>
date Mon, 01 Nov 2010 23:11:37 +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