view move-if-change @ 4195:cd09974da26e

[xemacs-hg @ 2007-09-30 15:13:33 by adrian] xemacs-21.5-clean: man/Makefile update for xemacsweb/Documentation/Makefile -------------------- ChangeLog entries follow: -------------------- man/ChangeLog addition: 2007-09-30 Adrian Aichner <adrian@xemacs.org> * Makefile (TEXI2HTML): Refactor TEXI2HTML for use by xemacsweb/Documentation/Makefile.
author adrian
date Sun, 30 Sep 2007 15:13:33 +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