view move-if-change @ 3026:beef0f850624

[xemacs-hg @ 2005-10-25 11:19:56 by ben] remove kludging of new and catch from config.h.in config.h.in: Don't define new and catch under C++ any more. (Places using new were just fixed by the last patch, places using catch were fixed a couple of weeks ago.)
author ben
date Tue, 25 Oct 2005 11:19:58 +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