view move-if-change @ 100535:f337e02f9b2e

(authors-fixed-case): New constant. (authors-public-domain-files, authors-ignored-files): (authors-valid-file-names, authors-renamed-files-alist): Update lists. (authors-renamed-files-regexps): Add some new entries. (authors-canonical-file-name): Don't complain about ignored files. (authors-canonical-author-name): Doc fix. Respect authors-fixed-case. (authors): Ensure error buffer is writable.
author Glenn Morris <rgm@gnu.org>
date Fri, 19 Dec 2008 03:16:14 +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