view move-if-change @ 4870:db9f7328bee1

fix compile problems under Visual Studio 6 -------------------- ChangeLog entries follow: -------------------- src/ChangeLog addition: 2010-01-15 Ben Wing <ben@xemacs.org> * syswindows.h (LOCAL_FILE_FORMAT_TO_TSTR): * syswindows.h (LOCAL_FILE_FORMAT_TO_INTERNAL_MSWIN): * syswindows.h (INTERNAL_MSWIN_TO_LOCAL_FILE_FORMAT): Declare some temporary pointer variables const to avoid compile errors under C++ and/or Visual Studio 6.
author Ben Wing <ben@xemacs.org>
date Fri, 15 Jan 2010 04:41:21 -0600
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