view move-if-change @ 84831:c5096ba21edb

Move entries for files in ../misc to the ChangeLog there. Entries were duplicated where they would have been made twice, had separate ChangeLogs existed at the time.
author Glenn Morris <rgm@gnu.org>
date Mon, 24 Sep 2007 02:29:40 +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