view move-if-change @ 5564:209024442c24

Examine $machine more carefully when choosing VDB implementation, NEW_GC ChangeLog addition: 2011-09-05 Aidan Kehoe <kehoea@parhasard.net> * configure.ac: $machine is intel386, reflecting the file name under src/m/, on i[3-9]86. Respect this when deciding on VDB_POSIX over VDB_MACH with the new GC. * configure: Regenerate.
author Aidan Kehoe <kehoea@parhasard.net>
date Mon, 05 Sep 2011 20:18:05 +0100
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