view move-if-change @ 108273:de8de918fbab

Remove NEED_BSDTTY and NEED_UNISTD_H. * s/hpux10-20.h (NEED_BSDTTY): Remove. * s/aix4-2.h (NEED_UNISTD_H): Remove. * systty.h: Simplify conditionals for including <sys/bsdtty.h>, <sys/ptyio.h> and <unistd.h>.
author Dan Nicolaescu <dann@ics.uci.edu>
date Thu, 06 May 2010 12:46:47 -0700
parents 354e0c45cedf
children 14a97ab281d5
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