view move-if-change @ 75342:2c4e85a0cf6e

Add 2007 to copyright years. Chao-Hong Liu has assigned copyright: EMACS Chao-Hong Liu China 1975 2002-12-20 Assigns past and future changes. (``TUTORIAL'' the file. And I provide two translations ``TUTORIAL.cn(in gb2312)'' for simplified Chinese and ``TUTORIAL.zh(in big5)''...
author Glenn Morris <rgm@gnu.org>
date Sun, 21 Jan 2007 00:26:00 +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