view move-if-change @ 105891:07c792840800

* xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to xmenu_show. (xmenu_show): New arg. Pass it to create_and_show_popup_menu. (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
author Chong Yidong <cyd@stupidchicken.com>
date Sat, 07 Nov 2009 23:49:08 +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