view move-if-change @ 31826:2c8c52a67b91

(try_window_reusing_current_matrix): Fix computation of reused rows' y-position in the case window has a header-line, and new window start is greater than old window start.
author Gerd Moellmann <gerd@gnu.org>
date Thu, 21 Sep 2000 18:41:57 +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