view move-if-change @ 55027:91ab946dfd86

(Fpos_visible_in_window_p): Return pixel position if PARTIALLY arg is non-nil. Simplify. Doc fix. (Fwindow_vscroll, Fset_window_vscroll): Add optional PIXEL_P arg to return/set vscroll in pixels.
author Kim F. Storm <storm@cua.dk>
date Tue, 20 Apr 2004 22:18:33 +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