view move-if-change @ 1353:b234386a35eb

[xemacs-hg @ 2003-03-12 17:35:06 by adrian] [S] [PATCH] xemacs-21.5: Change GNU to XEmacs in cl.texi direntry and Intro <fzpsx597.fsf@smtprelay.T-Online.De>
author adrian
date Wed, 12 Mar 2003 17:35:06 +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