view move-if-change @ 4718:a27de91ae83c

Don't prevent display objects from being deleted for `post-command-hook'. 2009-10-11 Michael Sperber <mike@xemacs.org> * event-stream.c (post_command_hook): Run `post-command-hook' without INHIBIT_EXISTING_PERMANENT_DISPLAY_OBJECT_DELETION - deleting other windows off that hook is legitimate.
author Mike Sperber <sperber@deinprogramm.de>
date Sun, 11 Oct 2009 17:26:40 +0200
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