view move-if-change @ 75605:c33174e3988a

(ebnf-eps-buffer, ebnf-eps-region) (ebnf-syntax-directory, ebnf-syntax-file, ebnf-syntax-region) (ebnf-style-database, ebnf-apply-style, ebnf-reset-style) (ebnf-push-style, ebnf-pop-style, ebnf-eps-production-list) (ebnf-directory, ebnf-file, ebnf-syntax-alist): Doc fixes.
author Eli Zaretskii <eliz@gnu.org>
date Fri, 02 Feb 2007 14:06:07 +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