view move-if-change @ 2605:262b5c1d8c18

[xemacs-hg @ 2005-02-22 22:34:23 by adrian] xemacs-21.5-clean: Don't copy removed BUGS in install target of xemacs.mak -------------------- ChangeLog entries follow: -------------------- nt/ChangeLog addition: 2005-02-22 Adrian Aichner <adrian@xemacs.org> * xemacs.mak (install): Don't copy BUGS, which has been removed.
author adrian
date Tue, 22 Feb 2005 22:34:23 +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