view move-if-change @ 3816:bd7108edc555

[xemacs-hg @ 2007-02-06 19:36:46 by aidan] iso8859-2 is not the X11 charset registry for the iso8859-4 charset.
author aidan
date Tue, 06 Feb 2007 19:36:51 +0000
parents 376386a54a3c
children
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