view move-if-change @ 80159:0a04edfc4982

Set of changes so that "obtrusive" syntactic elements in a C/C++/ObjC preprocessor line (e.g. an unbalanced string quote or unmatched paren) don't interact syntactically with stuff outside the CPP line. (c-get-state-before-change-function, c-before-font-lock-function, c-anchored-cpp-prefix): new language variables. (c-cpp-message-directives): Handle "#warning" in C, C++ and ObjC.
author Alan Mackenzie <acm@muc.de>
date Tue, 19 Feb 2008 22:11:38 +0000
parents 354e0c45cedf
children 14a97ab281d5
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