view move-if-change @ 25903:812005e9c20e

(ada-get-indent-*, ada-indent-current, ada-goto-*, ada-indent-newline-indent): Rewritten to support the new indentation scheme (ada-case-read-exceptions, ada-create-case-exceptions): New functions (ada-fill-comment-paragraph): Add support for the justification parameter (ada-make-body, ada-gen-treat-proc, ada-make-subprogram-body): Rewritten to benefit from the gnatstub external program
author Gerd Moellmann <gerd@gnu.org>
date Thu, 07 Oct 1999 14:33:10 +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