view move-if-change @ 5304:6784adb405ad

Remove lrecord_type_popup_data, lrecord_type_window_configuration, .gdbinit.in 2010-11-15 Aidan Kehoe <kehoea@parhasard.net> * .gdbinit.in: Remove lrecord_type_popup_data, lrecord_type_window_configuration from this file, they're not used, and their presence breaks pobj in GDB at runtime for me.
author Aidan Kehoe <kehoea@parhasard.net>
date Mon, 15 Nov 2010 19:31:06 +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