view move-if-change @ 5859:5423bb35a956

Correct .gdbinit, non-NEW_GC builds. src/ChangeLog additions: 2015-03-14 Aidan Kehoe <kehoea@parhasard.net> * .gdbinit.in.in (Lisp): lrecord_type_lcrecord_list is specific to non-NEW_GC, lrecord_type_string_direct_data and lrecord_type_string_indirect_data are specific to NEW_GC, correct this in this file.
author Aidan Kehoe <kehoea@parhasard.net>
date Sat, 14 Mar 2015 00:42:46 +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