view move-if-change @ 4736:d261888e5069

Fix Win32 native build after my DEFAULT_DIRECTORY_FALLBACK change, thanks Vin! src/ChangeLog addition: 2009-11-09 Aidan Kehoe <kehoea@parhasard.net> * sysfile.h (DEFAULT_DIRECTORY_FALLBACK): Move the WIN32_NATIVE definition inside the #ifdef emacs conditional, clear up the comment after #else; thanks for the build failure report, Vin! Cast DEFAULT_DIRECTORY_FALLBACK to (const CIbyte *) by default, which better reflects its contents. * editfns.c (get_home_directory): * buffer.c (init_initial_directory): Cast DEFAULT_DIRECTORY_FALLBACK to (Ibyte *) with functions that take that type, now that is necessary.
author Aidan Kehoe <kehoea@parhasard.net>
date Mon, 09 Nov 2009 18:00:10 +0000
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