view move-if-change @ 107462:6efbd7584cd8

Simplify LIBS_MACHINE definitions. * m/hp800.h (LIBS_MACHINE): Remove, same as default. * m/iris4d.h (LIBS_MACHINE): Likewise. * m/ibmrs6000.h (LIBS_MACHINE): Rename to LIBS_SYSTEM and move ... * s/aix4-2.h (LIBS_SYSTEM): ... here.
author Dan Nicolaescu <dann@ics.uci.edu>
date Mon, 22 Mar 2010 19:39:19 -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