view move-if-change @ 38056:f912becdb93a

(font-lock-comment-face): For tty's with dark background, use "red1", since "lightred" is not one of the colors recognized by tty-colors.el.
author Eli Zaretskii <eliz@gnu.org>
date Fri, 15 Jun 2001 10:14:23 +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