view move-if-change @ 785:955603004a04

[xemacs-hg @ 2002-03-19 22:48:03 by adrian] [AC] [PATCH] xemacs-21.5: Typo fixes for nt/ChangeLog and man/widget.texi <r8mgnpox.fsf@mailto.t-online.de>
author adrian
date Tue, 19 Mar 2002 22:48:13 +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