view move-if-change @ 852:d83885ef293b

[xemacs-hg @ 2002-05-25 01:55:29 by youngs] 2002-05-25 Steve Youngs <youngs@xemacs.org> * package-ui.el (pui-help-echo): Display both installed and author version. Use a balloon-help window to display extra info like package requires.
author youngs
date Sat, 25 May 2002 01:55:30 +0000
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