view move-if-change @ 108636:3ba0676c49c9

Since Cygwin does not set SYSTEM_MALLOC, $(VMLIMIT_OBJ) == vm-limit.o. * configure.in (POST_ALLOC_OBJ) [cygwin]: Omit vm-limit.o. (POST_ALLOC_OBJ) [!cygwin]: Set to empty. * src/Makefile.in (otherobj): Include $(VMLIMIT_OBJ) separately from $(POST_ALLOC_OBJ).
author Glenn Morris <rgm@gnu.org>
date Mon, 17 May 2010 19:49:28 -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