view move-if-change @ 2960:9151417c3852

[xemacs-hg @ 2005-09-27 21:43:19 by adrian] xemacs-21.5-clean: address stephen's query about my compile.texi fix -------------------- ChangeLog entries follow: -------------------- man/ChangeLog addition: 2005-09-27 Adrian Aichner <adrian@xemacs.org> * lispref/compile.texi (Compilation Options): Lowercase SYMBOL argument in `byte-compile-print-gensym' documentation, as suggested by Stephen.
author adrian
date Tue, 27 Sep 2005 21:43:22 +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