view move-if-change @ 3739:6d4dc9ec7240

[xemacs-hg @ 2006-12-11 19:43:57 by aidan] Check for the various u*_t types in configure, use those definitions in C.
author aidan
date Mon, 11 Dec 2006 19:44:56 +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