view move-if-change @ 1647:d90ba01b5346

[xemacs-hg @ 2003-08-27 17:18:20 by youngs] 2003-08-28 Steve Youngs <youngs@xemacs.org> * package-ui.el (pui-set-local-package-get-directory): Remove arg.
author youngs
date Wed, 27 Aug 2003 17:18:26 +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