view move-if-change @ 5262:75bcb5bef459

Replace a doubled semi-colon with a single semi-colon, fns.c, for VS6's sake. src/ChangeLog addition: 2010-09-07 Aidan Kehoe <kehoea@parhasard.net> * fns.c (Freplace): Replace an accidental double semi-colon with a single semi-colon, hopefully fixing Vin's Visual Studio 6 build. (Visual Studio 2005 had no problem with it, oddly.)
author Aidan Kehoe <kehoea@parhasard.net>
date Tue, 07 Sep 2010 17:03:46 +0100 (2010-09-07)
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