view move-if-change @ 54215:4f16c1a8d33d

(all): Depends on ${WORLD} instead of ${TIT} and ${MISC-DIC}. (clean, mostlyclean): Don't delete *.elc distributed with tarball. (maintainer-clean): Delete files that are not in CVS repository.
author Kenichi Handa <handa@m17n.org>
date Mon, 01 Mar 2004 06:56:32 +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