view move-if-change @ 49302:17a9a82ad89f

(mouse_position_for_popup): New function. (Fx_popup_menu): Call mouse_position_for_popup for X and mouse_position_hook for others.
author Jan Djärv <jan.h.d@swipnet.se>
date Sat, 18 Jan 2003 09:55:37 +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