view move-if-change @ 986:9b80efded6a5

[xemacs-hg @ 2002-09-01 06:49:49 by youngs] 2002-08-30 Mike Alexander <mta@arbortext.com> * event-msw.c (winsock_closer): Use closesocket, not CloseHandle to close a socket.
author youngs
date Sun, 01 Sep 2002 06:49:50 +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