view move-if-change @ 34945:99252c8e0152

(lm-copyright-prefix): New Variable. (lm-copyright-mark): New function. (lm-crack-copyright): New function. (lm-verify): Check that the file has a copyright. Check that the file is copyright Free Software Foundation.
author Gerd Moellmann <gerd@gnu.org>
date Tue, 02 Jan 2001 10:35: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