view move-if-change @ 3184:072ccc89ac3c

[xemacs-hg @ 2005-12-30 16:42:35 by michaels] 2005-12-30 Mike Sperber <mike@xemacs.org> * packages.el (packages-find-all-package-hierarchies): Interpret EMACSPACKAGEPATH as listing package direcories, not hierarchies. This fixes a regression introduced in the change on 2005-01-08.
author michaels
date Fri, 30 Dec 2005 16:42:36 +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