view move-if-change @ 627:a813963500d8

[xemacs-hg @ 2001-07-12 06:29:08 by tuck] Fix scan_sexps `unbalanced parentheses' bug when dealing with mixed comment styles in c++/java/etc. mode
author tuck
date Thu, 12 Jul 2001 06:29:10 +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