view move-if-change @ 81933:a5a2ef19d358

* etags.c (C_entries): Reset the fvdef machine when out of function. (PRINT_UNDOCUMENTED_OPTIONS_HELP): #define as FALSE if undefined. (print_help): Use it in if() rather than #if. (print_help): Conditionally print help about --no-line-directive.
author Francesco Potortì <pot@gnu.org>
date Tue, 17 Jul 2007 15:13:24 +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